sabat
unread,Jul 25, 2009, 7:37:51 PM7/25/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to simple-daemon
Hi everyone --
I just uploaded a patch to the current revision (0.1.2) that does two
things:
1- calls 'sync' on the log descriptor after opening, so that the OS
doesn't buffer the log messages as they're written. (Simply put, you
see messages immediately as they're written to the log, instead of
having to wait eons.)
2- adds a 'status' command, which checks for the existence of the pid
file and then runs Process.getpgid on the PID. I did see that someone
else had added a patch that has a check to see if the daemon process
is alive; however, it runs /bin/ps to do the check, which would
obviously not work on Windows, and is (IMHO) a little less elegant
than having Ruby do the check itself.