View Single Post
  #1   (View Single Post)  
Old 8th November 2010
guitarscn guitarscn is offline
Package Pilot
 
Join Date: Oct 2008
Posts: 166
Default Cannot start program in rc.local

Code:
# cat /etc/rc.local                                        
#       $OpenBSD: rc.local,v 1.39 2006/07/28 20:19:46 sturm Exp $

# Site-specific startup actions, daemons, and other things which
# can be done AFTER your system goes into securemode.  For actions
# which should be done BEFORE your system has gone into securemode
# please see /etc/rc.securelevel.

echo -n 'starting local daemons:'

# Add your local startup actions here.

if [ -x /usr/local/bin/socks.sh ]; then
            echo -n ' socks';
            /usr/local/bin/socks.sh
fi

if [ -x /usr/local/bin/dns.py ]; then
            echo -n ' dns';
            /usr/local/bin/dns.py >/dev/null 2>&1 &
fi

echo '.'
I cannot seem to start dns.py. Whenever I boot up my machine and check ps aux, it's not on there. I can run it from the command line just fine with "/usr/local/bin/dns.py >/dev/null 2>&1 &" (as root or sudo).

Last edited by guitarscn; 8th November 2010 at 02:01 AM.
Reply With Quote