On Mon, Apr 07, 2008 at 08:00:02PM +0900, Jonny wrote: > Since a directory called "*.conf" exists in /etc/sysctl.d, the error of > unexpected operator occurs with an init script: Comedy of errors. The package includes /etc/sysctl.d/*.conf/ as a directory, I think this is unintentionally done in debian/procps.dirs in the source package.
There's also insufficient quoting, although that masks the first problem rather than solves it (the -r/-e test prevents this from causing an error in this case). --- /etc/init.d/procps +++ /tmp/tmp.XfMpp20428/procps 2008-04-07 08:58:30.000000000 -0400 @@ -27,9 +27,9 @@ case "$1" in start|restart|force-reload) for file in /etc/sysctl.d/*.conf /etc/sysctl.conf ; do - if [ -r $file ] ; then + if [ -e "$file" ] ; then log_action_begin_msg "Setting kernel variables ($file)" - sysctl -q -p $file + sysctl -q -p "$file" log_action_end_msg $? fi done -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]