blob: 1c2c810e22f37661ea130b23af3728b3541205c1 (
plain)
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
|
#!/sbin/runscript
DAEMON="/usr/sbin/hwmultd"
PIDFILE="/var/run/hwmultd/hwmultd.pid"
extra_commands="reload"
depend() {
need net
}
start() {
local LOG=""
ebegin "Starting hwmultd"
if [ "${SYSLOG}" == "yes" ]; then
LOG="-s"
fi
start-stop-daemon --start --exec "${DAEMON}" -- "${LOG}"
eend $?
}
stop() {
ebegin "Stopping hwmultd"
start-stop-daemon --stop --pidfile "${PIDFILE}"
eend $?
}
reload() {
ebegin "Reloading hwmultd configuration"
start-stop-daemon --signal HUP --pidfile "${PIDFILE}"
eend $?
}
|