blob: 03ade0fe688cece3ccd8906670948450edb5ca01 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 $?
}
|