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

I put some file with .sh suffix in /etc/init.d folder.
how do i run this file on startup?
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.

Posts: 1222
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.
"Something to be aware of: Debian is a core or source distribution. This means there are many Debian-based distributions. THEY ARE NOT DEBIAN." - oswaldkelso
Posts: 1216
Joined: 2010-12-07 19:55

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 8 guests