source: npl/commonservers/daemontools/svcstop @ 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: 338 bytes
Line 
1#!/bin/bash
2# Syn-3 service stopper
3# Use this to stop a service the Right Way (TM)
4SERVICE=$1
5
6echo -n "Stopping $SERVICE ..."
7if [ -x $SERVICE/stop ] ; then
8        #use the supplied stop script
9        $SERVICE/stop
10        ERR=$?
11else
12        #use svcdownchk
13        svcdownchk $SERVICE
14        ERR=$?
15fi
16
17if [ $ERR != 0 ]; then
18        echo "ERROR!";
19else
20        echo "OK";
21fi
22exit $ERR
23
Note: See TracBrowser for help on using the repository browser.