ISC’s dhcpd uses this code to check for an already-running daemon:
/* Read previous pid file. */
if ((i = open (path_dhcpd_pid, O_RDONLY)) >= 0) {
status = read (i, pbuf, (sizeof pbuf) – 1);
close (i);
if (status > 0) {
[...]
Read the rest of this entry »
<shameless_plug>
I’m in the middle of putting together packages for the analog call generator my startup is building.
</shameless_plug>
The process for building debian packages is actually very well documented, though many of the tutorials you will find are aimed at people who are packaging third-party software instead of their own.
Also, I’m running on Debian’s Lenny, and I [...]
Read the rest of this entry »
From The Peanut Gallery