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 _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos