Run bash file on startup

New to Debian (Or Linux in general)? Ask your questions here!

Run bash file on startup

Postby ronp20 » 2018-04-30 07:38

Hello.
I put some file with .sh suffix in /etc/init.d folder.
how do i run this file on startup?
ronp20
 
Posts: 7
Joined: 2018-04-30 07:34

Re: Run bash file on startup

Postby peter_irich » 2018-04-30 12:10

man update-rc.d
and all scripts in /etc/init.d must be build like /etc/init.d/skeleton. Suffix is not needed.

Peter.
peter_irich
 
Posts: 1234
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation

Re: Run bash file on startup

Postby arochester » 2018-04-30 12:44

Do not double post. Post locked.
arochester
 
Posts: 1349
Joined: 2010-12-07 19:55


Return to Beginners Questions

Who is online

Users browsing this forum: sswcharlie and 4 guests

fashionable