On 03/04/2011 14:51, Miroslav Lachman wrote:
Hilko Meyer wrote:
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@kirk:~> service -l | grep dhcp
| isc-dhcpd
| hilti@kirk:~> service -e | grep dhcp
| hilti@kirk:~> /usr/local/etc/rc.d/isc-dhcpd rcvar
| # dhcpd
| dhcpd_enable=YES

It works for me on newer version of the FreeBSD (7.4-RELEASE) and with
newer dhcpd (isc-dhcp41-server-4.1.2_2,1)

~/# service -l | grep dhcp
isc-dhcpd
isc-dhcpd6

~/# service -e | grep dhcp
/usr/local/etc/rc.d/isc-dhcpd
/usr/local/etc/rc.d/isc-dhcpd6

~/# /usr/local/etc/rc.d/isc-dhcpd rcvar
# dhcpd
dhcpd_enable=YES

So you can compare rc scripts for those two versions or compare changes
in service between these two FreeBSD releases.

I'm glad to hear that Miroslav was able to make it work. I looked at the code and it's pretty simple, so I'm not sure why it would fail.

Hilko, if you can add -x to the end of the #!/bin/sh line in /usr/sbin/service it might give you more of an idea of what's going on.


hth,

Doug

--

        Nothin' ever doesn't change, but nothin' changes much.
                        -- OK Go

        Breadth of IT experience, and depth of knowledge in the DNS.
        Yours for the right price.  :)  http://SupersetSolutions.com/

_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to