blob: 5918c37469f9618c0cb96e221bd2f92e05d59386 (
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
SERVICE="gpm"
opts="start stop"
start() {
ebegin "Starting $SERVICE"
ln -sf ../services/${SERVICE} ${SVCDIR}/control/${SERVICE}
eend $?
}
stop() {
ebegin "Stopping $SERVICE"
if [ -e ${SVCDIR}/control/${SERVICE} ]
then
/usr/bin/svc -dx ${SVCDIR}/control/${SERVICE}
rm ${SVCDIR}/control/${SERVICE}
fi
eend $?
}
doservice ${@}
|