perl-5.22
|
Last change
on this file since a2d969e was
c5c522c,
checked in by Edwin Eefting <edwin@datux.nl>, 9 years ago
|
|
initial commit, transferred from cleaned syn3 svn tree
|
-
Property mode set to
100755
|
|
File size:
362 bytes
|
| Rev | Line | |
|---|
| [c5c522c] | 1 | #!/bin/bash |
|---|
| 2 | # Syn-3 service starter |
|---|
| 3 | # Use this to start a service the Right Way (TM) |
|---|
| 4 | SERVICE=$1 |
|---|
| 5 | |
|---|
| 6 | echo -n "Starting $SERVICE ..." |
|---|
| 7 | if [ -x $SERVICE/start ] ; then |
|---|
| 8 | #use the supplied start script |
|---|
| 9 | $SERVICE/start |
|---|
| 10 | ERR=$? |
|---|
| 11 | if [ $ERR != 0 ]; then |
|---|
| 12 | echo "ERROR"; |
|---|
| 13 | else |
|---|
| 14 | echo "OK"; |
|---|
| 15 | fi |
|---|
| 16 | exit $ERR |
|---|
| 17 | else |
|---|
| 18 | #just use plain svc -u |
|---|
| 19 | svc -u $SERVICE |
|---|
| 20 | echo "DONE" |
|---|
| 21 | exit $? |
|---|
| 22 | fi |
|---|
Note: See
TracBrowser
for help on using the repository browser.