blob: 38ccab8b3f3f336d90e4bee773778013533d651d (
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
|
#!/sbin/openrc-run
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
command="/usr/bin/shadowircd-ircd"
command_args="${SHADOWIRCD_OPTS}"
command_user="shadowircd"
extra_started_commands="reload"
pidfile="/run/shadowircd/ircd.pid"
depend() {
use dns net
provide ircd
}
start_pre() {
ebegin "Creating /run/shadowircd for ${SVCNAME}"
checkpath --directory --owner :shadowircd --mode 0770 /run/shadowircd
eend $?
}
reload() {
ebegin "Reloading ${SVCNAME}"
start-stop-daemon --signal HUP --pidfile "${pidfile}"
eend $?
}
|