aboutsummaryrefslogtreecommitdiffstats
path: root/service
diff options
context:
space:
mode:
Diffstat (limited to 'service')
-rwxr-xr-xservice11
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