martin010
martin010

Reputation: 407

Autostart script in init.d Raspberry not starting

I am running a Raspberry Pi with Wheezy and I am trying to start several scripts after booting but for some reason they are not starting and there is also no information / errors in the syslog / messages file.

The header of one of the scripts (all headers are a like and run fine if I start/stop it with the "service xxx start" command)

#!/bin/sh

### BEGIN INIT INFO
# Provides:          myservice
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5 
# Default-Stop:      0 1 6
# Short-Description: Put a short description of the service here
# Description:       Put a long description of the service here
### END INIT INFO

When I run the update-rc.d command, this is the only output it gives:

update-rc.d: using dependency based boot sequencing

Looking in the /etc/rcX.d directors, all scripts are there, starting with S03xxx

I have no idea why the system is not auto starting them. (Also check the run level, which is 2)

Upvotes: 0

Views: 1288

Answers (1)

imBushe
imBushe

Reputation: 1

You can try changing to this

Default-Start: S 2 3 4 5

Then run your update (you may not need to update, but it won't hurt).

S is for boot only then it will run the next level scripts.

Upvotes: 0

Related Questions