source:
npl/commonservers/daemontools/svcreset
@
105afb5
Last change on this file since 105afb5 was c5c522c, checked in by , 8 years ago | |
---|---|
|
|
File size: 194 bytes |
Line | |
---|---|
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.