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

Re: How to install init scripts manually?



In addition to symlinks to /etc/rc<runlevel>.d/ directories, insserv
adds a "<script_name>:" line to /etc/init.d/.depend.start file. My
mistake was that I added "<boot_facility>:" line to
/etc/init.d/.depend.start file.



regards,
Martin

On 8/9/14, Andrei POPESCU <andreimpopescu@gmail.com> wrote:
> On Lu, 04 aug 14, 13:30:54, Martin T wrote:
>>
>> As a next step, I made the /etc/init.d/test-script file executable and
>> added a symlink to /etc/rc3.d/("ln -s ../init.d/test-script
>> /etc/rc3.d/S23test-script") directory and changed my runlevel from
>> 2(default) to 3 with "init 3". However, the test-script was not
>> started. Then I made a symlink to /etc/rc2.d/ directory:
>>
>> # file /etc/rc2.d/S23test-script
>> /etc/rc2.d/S23test-script: symbolic link to `../init.d/test-script'
>> #
>>
>> ..and reloaded the machine, but still the script was not started. If I
>> install the script with insserv("insserv /etc/init.d/test-script")
>> then the script is started if I reload the machine. Am I correct that
>> both insserv and update-rc.d take some additional steps when enabling
>> the script besides installing the symlinks and those steps are
>> required by /sbin/init? I guess one thing is .depend.boot,
>> .depend.start and .depend.stop files, but something else?
>
> Most probably. Just run 'update-rc.d test-script defaults' to install
> your initscript.
>
> Kind regards,
> Andrei
> --
> http://wiki.debian.org/FAQsFromDebianUser
> Offtopic discussions among Debian users and developers:
> http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
> http://nuvreauspam.ro/gpg-transition.txt
>


Reply to: