Create startup script on Debian

Debian on script startup Create

First create file in /etc/init.d/. For me I create varnish file for starting varnishd.

Then put your Bash shell script.


Run these last commands to run the script every time server start.


chmod +x /etc/init.d/varnish

update-rc.d varnish defaults


varnish is the name of your bash shell script

Comments are closed