Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Typo on /Library/StartupItems/DHCP/DHCP' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Typo on /Library/StartupItems/DHCP/DHCP
Authored by: vanetten on Oct 17, '02 11:01:44AM

Ooops!

I used the Sendmail StartupItem as a template for the DHCP StartupItem and accidentally left sendmail as the process to restart.

Within the file /Library/StartupItems/DHCP/DHCP

RestartService ()
{
if pid=$(GetPID sendmail); then
ConsoleMessage "Restarting DHCP services"
kill -HUP "${pid}"
else
StartService
fi
}

Shoudl be:

RestartService ()
{
if pid=$(GetPID dhcpd); then
ConsoleMessage "Restarting DHCP services"
kill -HUP "${pid}"
else
StartService
fi
}



[ Reply to This | # ]