#!/bin/bash # Syn-3 service starter # Use this to start a service the Right Way (TM) SERVICE=$1 echo -n "Starting $SERVICE ..." if [ -x $SERVICE/start ] ; then #use the supplied start script $SERVICE/start ERR=$? if [ $ERR != 0 ]; then echo "ERROR"; else echo "OK"; fi exit $ERR else #just use plain svc -u svc -u $SERVICE echo "DONE" exit $? fi