Would somebody explain me, How can I create deamons for UNIX systems?
What should I need?
Where can I find more information about it?
I'm in the process of writing a deamon that monitors
a switch and I'd like to be able to create a log file
in the /var/log directory. I don't want it to log using
the syslog function as it would make the log file
huge and I'd prefere a separate log file anyway. Are
there any standard functions I could use to log
messages in a log file in /var/log? Or since the
deamon would be started on system startup(default),
it would have root permissions any way and I'd
be able to just create a file in the /var/log directory
and log there my self?