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) |
---|
4 | SERVICE=$1 |
---|
5 | |
---|
6 | echo -n "Stopping $SERVICE ..." |
---|
7 | if [ -x $SERVICE/stop ] ; then |
---|
8 | #use the supplied stop script |
---|
9 | $SERVICE/stop |
---|
10 | ERR=$? |
---|
11 | else |
---|
12 | #use svcdownchk |
---|
13 | svcdownchk $SERVICE |
---|
14 | ERR=$? |
---|
15 | fi |
---|
16 | |
---|
17 | if [ $ERR != 0 ]; then |
---|
18 | echo "ERROR!"; |
---|
19 | else |
---|
20 | echo "OK"; |
---|
21 | fi |
---|
22 | exit $ERR |
---|
23 | |
---|
Note: See
TracBrowser
for help on using the repository browser.