ALT Linux Bugzilla – #5080
/sbin/service incorrectly intercepts command line arguments passed to service
Last modified: 2007-04-21 16:22:51
You need to
before you can comment on or make changes to this bug.
/sbin/service looks for command line switches even after service name. So,
"service testd -huh" is processed like "service -huh testd", not like
"/etc/init.d/testd -huh". My little patch fixes this.
--- service.orig 2004-01-25 20:44:48 +0300
+++ service 2004-08-27 03:06:05 +0400
@@ -50,7 +50,9 @@
- usage 1
+ test -z "$SERVICE" && usage 1
+ OPTIONS="$OPTIONS $1"
if [ $# -eq 2 -a "$2" = "--full-restart" ]; then
Steps to Reproduce:
/sbin/service anything -anything
/sbin/service displays usage and fails.
Tail of command line should be passed directly to called service.
First, startup scripts usually have no option parser, so your script is probably
Second, your patch doesn't make possible to pass .e.g --help option to startup
Created an attachment (id=767) [details]
I'm going to apply this change to /sbin/service.
Applied in 0.5.7-alt1