blob: 518af1c6f1236a27c0d7c1ba17da79e240c63672 (
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
|
#!/bin/sh
#RCUPDATE:2 3 4:80:This line is required for script management
. /etc/rc.d/config/functions
. /etc/rc.d/config/basic
SERVICE="GPM"
opts="start stop restart"
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 -t $MOUSE
eend $? "Stopped $SERVICE." "Error stopping $SERVICE."
}
restart() {
stop
start
}
doservice ${@}
|