diff options
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 |