Newsgroups: gmane.linux.debian.user Date: Fri, 09 Jul 2004 18:11:27 -0400
Q: In RedHat, the chkconfig can also be used to generate a code skeleton that have start/stop, etc. Can we do it in debian?
Q: what is the right way to specify a service that only has start but no stop?
I just can't get it right. from the man page it is:
,----- | update-rc.d [-n] name defaults [NN | NN-start NN-stop] `-----
% update-rc.d local defaults 80-start update-rc.d: error: codenumber must be a number between 0 and 99 usage: update-rc.d [-n] [-f] <basename> remove update-rc.d [-n] <basename> defaults [NN | sNN kNN]
% update-rc.d local defaults s80 update-rc.d: error: codenumber must be a number between 0 and 99 update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...] .
% update-rc.d local start 80 update-rc.d: error: expected runlevel [0-9S] (did you forget "." ?)
% update-rc.d local start 80 . update-rc.d: error: expected runlevel [0-9S] (did you forget "." ?)
> I just can't get it right. from the man page it is: > > ,----- > | update-rc.d [-n] name defaults [NN | NN-start NN-stop] > `----- > > % update-rc.d local defaults 80-start
You misread the usage line. The '|' means "or", so you need to use one of these two forms:
update-rc.d name defaults NN update-rc.d name defaults NN-start NN-stop
Adam Aube
> what is the right way to specify a service that only has start but no > stop? > > % update-rc.d local start 80 .
station:~# update-rc.d local start 80 2 3 4 5 . Adding system startup for /etc/init.d/local ... /etc/rc2.d/S80local -> ../init.d/local /etc/rc3.d/S80local -> ../init.d/local /etc/rc4.d/S80local -> ../init.d/local /etc/rc5.d/S80local -> ../init.d/local station:~#
Thomas Adam