diff options
-rwxr-xr-x | service | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |