diff options
Diffstat (limited to 'media-libs/nas/files/nas.init.d')
-rw-r--r-- | media-libs/nas/files/nas.init.d | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/media-libs/nas/files/nas.init.d b/media-libs/nas/files/nas.init.d new file mode 100644 index 000000000000..6cfab54a4b1b --- /dev/null +++ b/media-libs/nas/files/nas.init.d @@ -0,0 +1,19 @@ +#!/sbin/runscript + +depend() { + need net + after alsasound esd +} + +start() { + ebegin "Starting nas" + start-stop-daemon --start --quiet --exec /usr/bin/nasd --background \ + --pidfile /var/run/nasd.pid --make-pidfile -- $NAS_OPTIONS + eend $? +} + +stop() { + ebegin "Stopping nas" + start-stop-daemon --stop --quiet --pidfile /var/run/nasd.pid + eend $? +} |