[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: aggiungere progr al runlevel 2



Da
$ man update-rc2.d
si ottiene:
...
...
       update-rc.d  [-n]  name  start|stop NN runlevel runlevel ... . 
start|stop NN runlevel run-level ...  . ...
...
...
INSTALLING INIT SCRIPT LINKS
       When run with  either  the  defaults,  start,  or  stop  options,  
update-rc.d  makes  links
       /etc/rcrunlevel.d/[SK]NNname pointing to the script /etc/init.d/name,
...
...

quindi se nella dir /etc/init.d/ hai uno script che si chiama ciao e vuoi che 
parta al runlevel 2 e si fermi qunado entri in 1 fai:

# update-rc.d ciao start 99 2 . stop 99 1 .

lui crea i link simbolici:
/etc/rc2.d/S99ciao -> /etc/init.d/ciao
/etc/rc1.d/K99ciao -> /etc/init.d/ciao

-----

Ragazzi leggete il man ... un po di inglese non può farvi male :-)

P@tchm@n

On Sunday 24 November 2002 14:40, g3i wrote:
> In che senso? Mettiamo che ho un progr che si chiama ciao, devo scrivere
> update-rc2.d ciao?
>
> On Sat, Nov 23, 2002 at 09:52:11PM +0100, francesco wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Alle 21:51, sabato 23 novembre 2002, g3i ha scritto:
> > > Come posso aggiungere demoni al runlevel2 ?
> >
> > con update-rc.d
> >
> > - --
> > Francesco
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.2.0 (GNU/Linux)
> >
> > iD8DBQE93+p+LD8KrT/l9LQRAlzjAKCAfk3QePeDTlILTk6E58mg2d8QQwCfckOc
> > QhL7fV+qIFUYST0EAF/CP0k=
> > =JG1d
> > -----END PGP SIGNATURE-----



Reply to: