service(8) doesn't list dhcpd startscript

Hilko Meyer hilko.meyer at gmx.de
Fri Mar 4 18:55:03 UTC 2011


Hi,

today I played a bit with service(8) and I noticed that it doesn't properly
detects the isc-dhcpd-startscript. System is 7.3-RELEASE-p4. 'service -l' lists
isc-dhcpd but 'service -e' doesn't lists it:
| hilti at kirk:~> service -l | grep dhcp 
| isc-dhcpd
| hilti at kirk:~> service -e | grep dhcp
| hilti at kirk:~> /usr/local/etc/rc.d/isc-dhcpd rcvar
| # dhcpd
| dhcpd_enable=YES

Some more info:

| hilti at kirk:~> pkg_info -xI dhcp
| isc-dhcp31-server-3.1.ESV,1 The ISC Dynamic Host Configuration Protocol server
| hilti at kirk:~> ls -l /usr/local/etc/rc.d/
| total 42
| -r-xr-xr-x  1 root  wheel   5612  2 Feb 17:21 apache22
| -r-xr-xr-x  1 root  wheel    508 25 Feb 17:57 cupsd
| -r-xr-xr-x  1 root  wheel   1731  2 Feb 17:21 htcacheclean
| -r-xr-xr-x  1 root  wheel  16875 20 Okt 17:30 isc-dhcpd
| -r-xr-xr-x  1 root  wheel    713 20 Okt 17:14 mailman
| -r-xr-xr-x  1 root  wheel   1966  8 Feb 19:49 mysql-server
| -r-xr-xr-x  1 root  wheel   5037  2 Mär 19:29 samba
| -r-xr-xr-x  1 root  wheel    529 26 Aug  2009 scanlogd
| -r-xr-xr-x  1 root  wheel    890 20 Okt 17:13 smartd

htcacheclean is not enabled, but all other scripts are enabled. In
/var/log/messages I found
| Mar  4 18:41:29 kirk hilti: /usr/sbin/service: WARNING: $htcacheclean_enable is not set properly - see rc.conf(5).
but it seems unrelated to the dhcpd-problem. I removed the htcacheclean script
but 'service -l' stil doesn't lists the dhcpd service.

Whar can I do to fix this problem?

Thanks,
Hilko


More information about the freebsd-stable mailing list