I'll omit fork() and run my script from /etc/inittab as pref:3:respawn:/bin/su -c '/usr/local/pref/pref.pl' nobody 2>&1 > /tmp/pref.txt Do you think I still need setsid(); chdir("/"); and umask(0); ? Regards Alex
Thu Jun 2 20:36:59 UTC 2011
Alexander Farber <alexander.farber at gmail.com>
I'll omit fork() and run my script from /etc/inittab as pref:3:respawn:/bin/su -c '/usr/local/pref/pref.pl' nobody 2>&1 > /tmp/pref.txt Do you think I still need setsid(); chdir("/"); and umask(0); ? Regards Alex