source: npl/commonservers/daemontools/svcreset

Last change on this file 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: 194 bytes
Line 
1#!/bin/bash
2# Syn-3 script
3# Reset a service to the default state it gets after booting
4SERVICE=$1
5
6if [ -e $SERVICE/down ] ; then
7        svcstop $SERVICE
8        exit $?
9else
10        svcstart $SERVICE
11        exit $?
12fi
Note: See TracBrowser for help on using the repository browser.