yasnd/contrib/yasnd.openrc

33 lines
692 B
Plaintext
Raw Normal View History

2011-12-20 18:06:34 +04:00
#!/sbin/runscript
# Copyright (c) 2011 Sergey Popov <admin@pinkbyte.ru>
2011-12-20 18:06:34 +04:00
# All rights reserved. Released under the 2-clause BSD license.
extra_started_commands="reload"
description="Yet Another Stupid Network Daemon"
description_reload="Reloads daemon configuration"
depend()
{
need net logger
}
start()
{
ebegin "Starting yasnd"
2012-03-23 14:08:56 +04:00
start-stop-daemon --start --background --quiet --pidfile /var/run/yasnd.pid --exec /usr/sbin/yasnd
2011-12-20 18:06:34 +04:00
eend $?
}
stop()
{
ebegin "Stopping yasnd"
start-stop-daemon --stop --quiet --pidfile /var/run/yasnd.pid
eend $?
}
reload() {
ebegin "Reloading yasnd configuration"
start-stop-daemon --signal HUP --pidfile /var/run/yasnd.pid
eend $?
}