[CentOS] Restarting a Perl-script (socket daemon) from /etc/inittab
Alexander Farber
alexander.farber at gmail.com
Thu Jun 2 22:26:39 UTC 2011
Thank you, now my perl daemon works with /etc/inittab
I've removed fork() and used this line:
pref:3:respawn:/bin/su -c '/usr/local/pref/pref.pl >/tmp/pref.txt 2>&1' nobody
Regards
Alex
More information about the CentOS
mailing list