On Tue, 2003-09-16 at 01:52, Williams, Quinton L wrote:
> I am using RH9 and cannot get the daemon and killproc commands to work
> in my init.d startup scripts.
>
> I keep getting the following error:
>
> # /sbin/service dhcpd stop
>
> Stopping dhcpd: /etc/init.d/dhcpd: line 26: killproc: command not
> found
>
> I was able to get the start function to work by just removing the
> daemon command and leaving the path to the program:
>
> start() {
>
> echo -n $"Starting $prog: "
>
> ./usr/sbin/dhcpd
>
> Any help would be great, but please make it simple since I’m pretty
> new to Linux.
Obviously. ;-)
No, seriously, you've just broken those scripts where you've deleted
"killproc". Killproc is a function defined in
/etc/rc.d/init.d/functions and sourced by each of the scripts in that
same directory. I can only assume that you've somehow managed to delete
the functions file, which is breaking the rest of your scripts. If you
need to replace that file, email me off-list and I'll send you a copy
from my RH9 laptop. But you'll need to go back and undo those deletions
you made.
--
Jason Dixon, RHCE
DixonGroup Consulting
http://www.dixongroup.net
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list