[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: rc.local fails to work



On Wed, 2008.11.05, 310, Stephen Liu wrote:
> I have 3 commands on /etc/rc.local
> 
> 
> # cat /etc/rc.local
> /bin/sh -e
> #
> # rc.local
> #
> 
> /usr/local/bind/sbin/named -u named -t /usr/local/bind -c
> /etc/named.conf
> 
> /usr/local/sbin/clamd
> 
> su - amavis -c "/usr/local/sbin/amavisd"
> 
> exit 0
> * end *
> 
> 
> Previously rc.local worked without problem, commands executed at
> booting.  For unknown cause they stop working.  I have to start them
> manually after bootup.

The first line of /etc/rc.local should be "#!/bin/sh -e".  Also, the '-e' 
option causes the shell to stop processing the script if any command exits with 
a non-zero status, so you may want to remove it.

Attachment: signature.asc
Description: Digital signature


Reply to: