33 lines
700 B
Plaintext
Executable File
33 lines
700 B
Plaintext
Executable File
#!/sbin/runscript
|
|
# Copyright (c) 2011-2013 Sergey Popov <admin@pinkbyte.ru>
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
extra_started_commands="reload"
|
|
description="Yet Another Stupid Network Daemon"
|
|
description_reload="Reloads daemon configuration"
|
|
|
|
depend()
|
|
{
|
|
need net logger
|
|
}
|
|
|
|
start()
|
|
{
|
|
ebegin "Starting yasnd"
|
|
start-stop-daemon --start --background --quiet --pidfile /var/run/yasnd.pid --exec /usr/sbin/yasnd
|
|
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 $?
|
|
}
|