source:
npl/commonservers/daemontools/svcreset
Last change on this file was c5c522c, checked in by , 8 years ago | |
---|---|
|
|
File size: 194 bytes |
Rev | Line | |
---|---|---|
[c5c522c] | 1 | #!/bin/bash |
2 | # Syn-3 script | |
3 | # Reset a service to the default state it gets after booting | |
4 | SERVICE=$1 | |
5 | ||
6 | if [ -e $SERVICE/down ] ; then | |
7 | svcstop $SERVICE | |
8 | exit $? | |
9 | else | |
10 | svcstart $SERVICE | |
11 | exit $? | |
12 | fi |
Note: See TracBrowser
for help on using the repository browser.