diff options
Diffstat (limited to 'app-admin/gentool/files/svc-gentool')
-rwxr-xr-x | app-admin/gentool/files/svc-gentool | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app-admin/gentool/files/svc-gentool b/app-admin/gentool/files/svc-gentool new file mode 100755 index 000000000000..833580c11d76 --- /dev/null +++ b/app-admin/gentool/files/svc-gentool @@ -0,0 +1,27 @@ +#!/bin/sh +#RCUPDATE:3 4:72:This line is required for script management + +. /etc/rc.d/config/functions + +SERVICE=gentool +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 ${@} + |