Page 1 of 1

Run Script at startup

Posted: 08 Jan 2021, 08:33
by fabiobiscia
Hi everyone. I would like to create a script that starts automatically on startup, possibly with root privileges. I have already tried some techniques tested with the main linux distros but none worked, could you help me? :shock:

Re: Run Script at startup

Posted: 08 Jan 2021, 13:51
by TMRyan
Hi,

You can try to put the script under /etc/init.d/, and then use the touch command to create a file with the same name as the script under /etc/sc.d/.

Have a good day!

Re: Run Script at startup

Posted: 08 Jan 2021, 16:24
by fabiobiscia
Thanks for the reply. in rc.d it is sufficient to create an empty file with the same name?

Re: Run Script at startup

Posted: 25 Mar 2021, 03:15
by mil_house23
hello, have the same problem, can you resolve?
i try the the solution but didnt work , i need to run java problem and keep running
Can you helpme please...
Thanks

Nicolas