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

starting a script from rc.local



I have a problem with a script that starts at system boot and then runs 
in the background.

The problem can be reproduced with a pared down script that just 
contains two lines:
#!/bin/sh
isakmpd

The script is started from rc.local as /etc/myscript &

If isakmpd is started directly from rc.local (not what I want because I 
have to do lots of things in myscript) it will run properly.
If /etc/myscript is started in the foreground from rc.local isakmpd will 
work.
However if /etc/myscript is started in the background from rc.local 
isakmpd will fail with the following messages:
"Write to log file failed (errno 5), redirecting output to syslog" and 
then "Recvfrom (.....): Socket operation on non socket".

The problem occurs with 3.3 stable but a 2.9 system runs properly with 
this setup.

Any clues?

Daniel