source: npl/commonservers/daemontools/svcstart @ 105afb5

Last change on this file since 105afb5 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100755
File size: 362 bytes
Line 
1#!/bin/bash
2# Syn-3 service starter
3# Use this to start a service the Right Way (TM)
4SERVICE=$1
5
6echo -n "Starting $SERVICE ..."
7if [ -x $SERVICE/start ] ; then
8        #use the supplied start script
9        $SERVICE/start
10        ERR=$?
11        if [ $ERR != 0 ]; then
12                echo "ERROR";
13        else
14                echo "OK";
15        fi
16        exit $ERR
17else
18        #just use plain svc -u
19        svc -u $SERVICE
20        echo "DONE"
21        exit $?
22fi
Note: See TracBrowser for help on using the repository browser.