31 lines
655 B
Plaintext
31 lines
655 B
Plaintext
#!/sbin/openrc-run
|
|
# Copyright 2020-2021 Hyperbola
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
extra_started_commands="reload"
|
|
|
|
depend() {
|
|
need net
|
|
after firewall
|
|
provide ircd
|
|
}
|
|
|
|
start() {
|
|
ebegin "Starting ngIRCd"
|
|
start-stop-daemon --start --quiet --exec /usr/sbin/ngircd
|
|
eend $? "Failed to start ngIRCd"
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping ngIRCd"
|
|
start-stop-daemon --stop --quiet --exec /usr/sbin/ngircd
|
|
eend $? "Failed to stop ngIRCd"
|
|
}
|
|
|
|
reload() {
|
|
ebegin "Reloading ngIRCd"
|
|
start-stop-daemon --stop --signal HUP --quiet --oknodo \
|
|
--exec /usr/sbin/ngircd
|
|
eend $? "Failed to reload ngIRCd"
|
|
}
|