#!/sbin/runscript # Copyright (C) 2010 OpenSKX Project, Computer Center of the University of Freiburg, Germany # This program is free software distributed under the GPL version 2. # See http://openslx.org/COPYING opts="${opts} reload" PVSPRIVINPUTD_BINARY="@CMAKE_INSTALL_PREFIX@/sbin/pvsprivinputd" PVSPRIVINPUTD_PIDFILE="/var/run/pvsprivinputd.pid" depend() { use net use logger before dbus } start() { ebegin "Starting pvsprivinputd" start-stop-daemon --start --pidfile "${PVSPRIVINPUTD_PIDFILE}" \ --exec "${PVSPRIVINPUTD_BINARY}" -- \ -d -lsyslog eend $? } stop() { ebegin "Stopping pvsprivinputd" start-stop-daemon --stop --signal SIGINT --pidfile "${PVSPRIVINPUTD_PIDFILE}" \ --exec "${PVSPRIVINPUTD_BINARY}" eend $? } reload() { ebegin "Realoding pvsprivinputd's configuration" start-stop-daemon --stop --signal SIGHUP --pidfile "${PVSPRIVINPUTD_PIDFILE}" \ --oknodo --exec "${PVSPRIVINPUTD_BINARY}" eend $? }