Hello. A colleague of mine, Håvard, found some problems in the rc script of dhcpd and tftpd. The pid is not recorded when the daemon is started. Therefore "rc stop" does not work. By using pidof the pid is recorded, and "rc stop" works. Here are the small patches:
#### Patch for dhcpd-3.0.4-2.20061018 --- rc.dhcpd.orig 2006-10-16 16:12:52.000000000 +0200 +++ rc.dhcpd 2006-11-13 18:24:05.000000000 +0100 @@ -55,6 +55,7 @@ rcService dhcpd usable no && exit 0 rcService dhcpd active yes && exit 0 dhcpd_start $dhcpd_if + pidof @l_prefix@/sbin/dhcpd > $dhcpd_pidfile %stop -u @l_susr@ rcService dhcpd enable yes || exit 0 #### End patch #### Patch for tftp-0.43-2.20061018 patch --- rc.tftp.orig 2006-10-16 16:14:09.000000000 +0200 +++ rc.tftp 2006-11-13 18:36:28.000000000 +0100 @@ -40,6 +40,7 @@ opts="$opts $tftp_flags" fi @l_prefix@/sbin/tftpd $opts -s $tftp_rootdir + pidof @l_prefix@/sbin/tftpd > $tftp_pidfile %stop -u @l_susr@ rcService tftp enable yes || exit 0 #### End patch -- MVH Jørgen H. Fjeld Systemleveranser Linpro AS
signature.asc
Description: Digital signature