aboutsummaryrefslogtreecommitdiffstats
path: root/service
diff options
context:
space:
mode:
Diffstat (limited to 'service')
-rwxr-xr-xservice4
1 files changed, 3 insertions, 1 deletions
diff --git a/service b/service
index 7976625d..923f33ae 100755
--- a/service
+++ b/service
@@ -4,7 +4,9 @@ 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" $*
+ service=$1
+ shift
+ "/etc/rc.d/init.d/$service" $*
else
echo "$1: unrecognized service" >&2
exit 1