blob: 5257df27976da4ef6f3bb43f54746c652dc813c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/sbin/openrc-run
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
: ${unrealircd_conf:=/etc/unrealircd/${RC_SVCNAME}.conf}
depend() {
use dns net
provide ircd
}
supervisor=supervise-daemon
command=/usr/bin/unrealircd
command_args="-F -f ${unrealircd_conf} ${unrealircd_opts}"
command_user="unrealircd:unrealircd"
extra_started_commands="checkconfig reload"
checkconfig() {
runuser -u "${command_user%%:*}" -- ${command} -c "${unrealircd_conf}"
}
start_pre() {
checkconfig
}
reload() {
checkconfig || return $?
ebegin "Reloading ${RC_SVCNAME}"
supervise-daemon "${RC_SVCNAME}" --signal HUP
eend $?
}
|