diff options
| author | Sebastien Braun | 2010-11-04 00:38:24 +0100 |
|---|---|---|
| committer | Sebastien Braun | 2010-11-04 00:38:24 +0100 |
| commit | 4fcc0efae9738bb28922da592fff78cfef50277b (patch) | |
| tree | b3855b36abe874606a802ec75fc573543d2d7b35 /src/input/pvsprivinputd.gentooinit.in | |
| parent | [PVSMGRTOUCH] resetall bug fixed (diff) | |
| parent | Documentation fixes and code cleanup (diff) | |
| download | pvs-4fcc0efae9738bb28922da592fff78cfef50277b.tar.gz pvs-4fcc0efae9738bb28922da592fff78cfef50277b.tar.xz pvs-4fcc0efae9738bb28922da592fff78cfef50277b.zip | |
Merge input handling work to master
Diffstat (limited to 'src/input/pvsprivinputd.gentooinit.in')
| -rw-r--r-- | src/input/pvsprivinputd.gentooinit.in | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/input/pvsprivinputd.gentooinit.in b/src/input/pvsprivinputd.gentooinit.in new file mode 100644 index 0000000..03ade0f --- /dev/null +++ b/src/input/pvsprivinputd.gentooinit.in @@ -0,0 +1,37 @@ +#!/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 $? +} |
