diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-misc/spacenavd/files/spnavd |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-misc/spacenavd/files/spnavd')
-rw-r--r-- | app-misc/spacenavd/files/spnavd | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app-misc/spacenavd/files/spnavd b/app-misc/spacenavd/files/spnavd new file mode 100644 index 000000000000..6bbe49a7bbf0 --- /dev/null +++ b/app-misc/spacenavd/files/spnavd @@ -0,0 +1,27 @@ +#!/sbin/openrc-run +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later + +depend() { + need localmount + after bootmisc +} + +start() { + ebegin "Starting Spacenav system daemon" + + start-stop-daemon --start --pidfile /var/run/spnavd.pid --exec /usr/bin/spacenavd + eend $? +} + +stop() { + local retval + + ebegin "Stopping Spacenav system daemon" + + start-stop-daemon --stop --pidfile /var/run/spnavd.pid + retval=$? + + eend ${retval} + return ${retval} +} |