summaryrefslogtreecommitdiff
blob: 3329fcbdfdc77a6fe24b85ca3d0dcca7f178abe8 (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
#!/bin/sh
#RCUPDATE:1 2 3 4 5:19:This line is required for script management

. /etc/rc.d/config/functions

SERVICE=syslog
opts="start stop"

start() {
    ebegin "Starting supervised ${SERVICE}"
	ln -sf ../services/${SERVICE} ${SVCDIR}/control/${SERVICE}
    eend $?
}

stop() {
    ebegin "Stopping supervised ${SERVICE}"
   	if [ -e ${SVCDIR}/control/${SERVICE} ]
	then
		/usr/bin/svc -dx ${SVCDIR}/control/${SERVICE}
		rm ${SVCDIR}/control/${SERVICE}
	fi
	eend $?
}

doservice ${@}