Skip to content
Advertisement

Debian Startup Script Will Not Start

I was creating a startup BASH script, when I was given an error similar to:

JavaScript

So I went and put in some LSB tags, but it still does not start on startup. The script works perfectly if I start it manually

JavaScript

It is a very simple script that is intended to startup a PERL script in the same folder (/etc/init.d/fcgiwrap.pl).

JavaScript

Advertisement

Answer

In order for the script to do things “at startup,” you need to run commands (rc.d) rules for it. Otherwise it is just a script floating in /etc/init.d.

For a guide on rc.d, checkout https://www.debian-administration.org/article/28/Making_scripts_run_at_boot_time_with_Debian , and look particularly for the update-rc.d command.

Also, if you’re going to use an LSB style header, you might as well actually fill out the values to have meaning, instead of leaving those defaults.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement