Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Run bash file on startup

New to Debian (Or Linux in general)? Ask your questions here!
Locked
Message
Author
ronp20
Posts: 7
Joined: 2018-04-30 07:34

Run bash file on startup

#1 Post by ronp20 »

Hello.
I put some file with .sh suffix in /etc/init.d folder.
how do i run this file on startup?

peter_irich
Posts: 1406
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

Re: Run bash file on startup

#2 Post by peter_irich »

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

Peter.

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: Run bash file on startup

#3 Post by arochester »

Do not double post. Post locked.

Locked