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

Re: editing /etc/init.d



> I need to edit a script in /etc/init.d to allow a program, which I
> haven't been able to get to run, to log what is happening.
> 
> So far I've not touched this area and find the manpage for
> 'update-rc.d' a little confusing. The script to be edited is linked
> to /etc/rc0/  .... /etc/rc6/ (as defaults with runlevels and
> sequence code). Do I need to remove all of these links with -f,
> so running 'update rc.d -f xxxxxx defaults' ? 
> I presume I could run the same command with -n instead of -f
> just to have a 'look-see' -but I'm wary of touching something I
> don't yet understand. In any event this seems too simple.
> 



I do not understand why would you mess with update-rc.d.
If I wanted to have some already existent /etc/init.d script echo some 
messages or write them to a file I would add the right commands to the script. 
I might have save the original script before changing it. But all those 
actions have  nothing to do with update-rc.d.

update-rc.d (or any other method that was mentioned here) might be handy for 
example when you want a program to start at boot time AND it is not done so by 
defualt. Yet if you couldn't get such a program to run then messing with the 
/etc/init.d scripts seems to me premature.

I hope I make sense. Perhaps you should post more details about what your 
problem is?



> Would someone be good enough to advise me.
> 
> Thanks,    John.
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 

-- 

	Shaul Karl <shaulka@bezeqint.net>

Hillel used to say: If I am not for myself who will be for me?
Yet, if I am for myself only, what am I? And if not now, when?
                                          (Ethics Of The Fathers 1:14)





Reply to: