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

Re: rc.local fails to work



On Wed, Nov 05, 2008 at 09:10:18AM +0800, Stephen Liu wrote:
> Debian Etch
> 
> 
> I have 3 commands on /etc/rc.local
> 
> 
> # cat /etc/rc.local
> /bin/sh -e

in my /etc/rc.local, this line is

#!/bin/sh -e

Note the pound-bang (#!) that makes this script run by sh rather than
running sh -e as a command (or doing nothing, I'm not sure which).

> #
> # 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 *
> 
> 
> # ls -l /etc/rc.local
> -rwxr-xr-x 1 root root 444 Nov  4 11:00 /etc/rc.local
> 
> 
> Previously rc.local worked without problem, commands executed at
> booting.  For unknown cause they stop working.  I have to start them
> manually after bootup.


Doug.

 


Reply to: