Run Script at startup

Permissions, domain/LDAP, power, security, notification and more.
Locked
User avatar
fabiobiscia
Posts: 24
Joined: 08 Jan 2021, 08:28

Run Script at startup

Post 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:
User avatar
TMRyan
TerraMaster Team
Posts: 822
Joined: 01 Dec 2020, 11:50
China

Re: Run Script at startup

Post 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!
To contact our team, please send email to following addresses, remember to replace (at) with @
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement)
User avatar
fabiobiscia
Posts: 24
Joined: 08 Jan 2021, 08:28

Re: Run Script at startup

Post by fabiobiscia »

Thanks for the reply. in rc.d it is sufficient to create an empty file with the same name?
User avatar
mil_house23
Posts: 12
Joined: 25 Mar 2021, 01:47

Re: Run Script at startup

Post 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
Locked