Bugzilla – Bug 119822
syntax error in /etc/init.d/cupsrenice
Last modified: 2005-11-23 11:19:05 UTC
This message is displayed on console after startup: /etc/init.d/cupsrenice: line 58: [: too many arguments line 58 checks if cupsd is running, but on my system, during startup, 2 cupsd processes are running. This triggers the error. I suggest to enclose x$ppid in double quotes
Created attachment 51303 [details] output of ps -Af at time of the error
The ps -A output at that time was probably like the following: 6261 ? 00:00:00 cupsd 6262 ? 00:00:00 cupsd Therefore $ppid contained: 6261 6262 So the problem could be solved by changing: 58 if [ x$ppid = x ]; then 59 return 60 fi to: 58 if [ -z "$ppid" ]; then 59 return 60 fi
Thanks. Sorry for delay, was in vacation. Will work on it as scheduling and time permits. This is not nice, but only lower priority: the script is only called once, when machine boots. --> adjusting.
fixed in next version