diff options
Diffstat (limited to 'app-misc/gizmod/files/gizmod.rc')
-rw-r--r-- | app-misc/gizmod/files/gizmod.rc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/app-misc/gizmod/files/gizmod.rc b/app-misc/gizmod/files/gizmod.rc new file mode 100644 index 0000000..86f27d3 --- /dev/null +++ b/app-misc/gizmod/files/gizmod.rc @@ -0,0 +1,21 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +depend() { + after alsasound +} + +start() { + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --background --make-pidfile --pidfile /var/run/gizmod.pid \ + --exec /usr/bin/gizmod -- ${GIZMOD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --pidfile /var/run/gizmod.pid + eend $? +} |