You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-irc/znc/files/znc.initd

40 lines
910 B

#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-irc/znc/files/znc.initd,v 1.1 2012/11/21 18:11:31 wired Exp $
extra_commands="config"
extra_started_commands="reload save"
depend() {
need net
}
start() {
ebegin "Starting ZNC"
start-stop-daemon --start --user ${ZNC_USER} --name znc \
--exec /usr/bin/znc -- -d ${ZNC_CONF}
eend $?
}
stop() {
ebegin "Stopping ZNC"
start-stop-daemon --signal SIGINT --name znc \
--exec /usr/bin/znc -- -d ${ZNC_CONF}
eend $?
}
reload() {
ebegin "Reloading ZNC Configuration File from Disk"
start-stop-daemon --signal SIGHUP --name znc \
--exec /usr/bin/znc -- -d ${ZNC_CONF}
eend $?
}
save() {
ebegin "Saving ZNC Configuration File to Disk"
start-stop-daemon --signal SIGUSR1 --name znc \
--exec /usr/bin/znc -- -d ${ZNC_CONF}
eend $?
}