M
M
Misha Vasilyev2014-08-28 15:44:47
Debian
Misha Vasilyev, 2014-08-28 15:44:47

How to autostart in Debian with chroot?

Hello!
I have a WD MyBook Live box. On it, by default, there is some old debian. When I bought it, according to the instructions I found, I put Debian 6 and Transmission in the chroot. I took a ready-made launch script for the transmission daemon and added it either through update-rc.d, or through insserv. Well, the transmission is turned on automatically when the piece of iron is restarted.
Now I want to do the same with minidlna and btsync and it doesn't work. What I did:
1. I made minidlna and btsync scripts in /etc/init.d/
2. Manually they normally process commands like service minidlna start/stop
3. First I did update-rc.d minidlna defaults and got update-rc.d: using dependency based boot sequencing. Googling, I did update-rc.d -f minidlna remove and insert minidlna. On restart it doesn't work.
4. Googling some more, I found sysv-rc-conf, installed it, launched it, ticked the boxes in the same place where the checkboxes are for the transmission - nothing.
Where else can I look?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Petrikov, 2014-08-28
@vasilyev

In the startup scripts, fill in the header, according to the template from what is being launched, there like:

### BEGIN INIT INFO
# Provides:             start_guest
# Required-Start:       $bootlogs $sudo $virtualbox-guest-utils $syslog
# Required-Stop:        $bootlogs $sudo $virtualbox-guest-utils $syslog
# Should-Start:
# Default-Start:        2 3 4 5
# Default-Stop:         0 1 6
# Short-Description:    start_guest
### END INIT INFO

Give execute permissions
chmod +x script name
then try insserv

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question