diff options
author | Bill Nottingham <notting@redhat.com> | 1999-04-13 15:11:04 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-04-13 15:11:04 +0000 |
commit | dfd3eae3c12fc1d053a218b774bb6a06a2bb82fc (patch) | |
tree | 73a91cef7b9561a11c47326fe07f20fcd024ea46 /service | |
parent | 72fb31244b9818d4ce564f632ab4d39b3ea48f64 (diff) | |
download | initscripts-dfd3eae3c12fc1d053a218b774bb6a06a2bb82fc.tar initscripts-dfd3eae3c12fc1d053a218b774bb6a06a2bb82fc.tar.gz initscripts-dfd3eae3c12fc1d053a218b774bb6a06a2bb82fc.tar.bz2 initscripts-dfd3eae3c12fc1d053a218b774bb6a06a2bb82fc.tar.xz initscripts-dfd3eae3c12fc1d053a218b774bb6a06a2bb82fc.zip |
add a service script for starting and stopping things. wheeeeeeeeee...
Diffstat (limited to 'service')
-rwxr-xr-x | service | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/service b/service new file mode 100755 index 00000000..9337baed --- /dev/null +++ b/service @@ -0,0 +1,11 @@ +#!/bin/sh + +if [ -z "$1" ]; then + echo "no service specified" >&2 + exit 1 +elif [ -x "/etc/rc.d/init.d/$1" ]; then + "/etc/rc.d/init.d/$1" "basename \"$0\"" +else + echo "$1: unrecognized service" >&2 + exit 1 +fi |