source:
npl/commonservers/daemontools/svcreset
@
250d444
| Last change on this file since 250d444 was c5c522c, checked in by , 9 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.
