blob: 842d396b5bea96383254be295d19890c6105f8b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/sbin/runscript
PIDFILE=/var/run/gpm.pid
EXE=/usr/sbin/gpm
start() {
ebegin "Starting ${SERVICE}"
start-stop-daemon --start --quiet --exec ${EXE} -t ${MOUSE}
eend ${?} "Started ${SERVICE}." "Error starting ${SERVICE}."
}
stop() {
ebegin "Stopping ${SERVICE}"
start-stop-daemon --stop --quiet --pidfile ${PIDFILE} --exec ${EXE}
eend ${?} "Stopped ${SERVICE}." "Error stopping ${SERVICE}."
}
restart() {
stop
start
}
|