initial import
This commit is contained in:
30
ngircd/ngircd.initd
Normal file
30
ngircd/ngircd.initd
Normal file
@@ -0,0 +1,30 @@
|
||||
#!/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"
|
||||
}
|
||||
Reference in New Issue
Block a user