Run Script at startup

Discussion on apps, protocols, APIs, specifications, and more. You are welcome to join us as a TOS app developer!
Post Reply
User avatar
fabiobiscia
Posts: 2
Joined: 08 Jan 2021, 08:28

Run Script at startup

Post by fabiobiscia » 08 Jan 2021, 08:33

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
Customer Service
Posts: 104
Joined: 01 Dec 2020, 11:50

Re: Run Script at startup

Post by TMRyan » 08 Jan 2021, 13:51

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 tech team, please email to support(at)terra-master.com, remember to replace (at) with @

User avatar
fabiobiscia
Posts: 2
Joined: 08 Jan 2021, 08:28

Re: Run Script at startup

Post by fabiobiscia » 08 Jan 2021, 16:24

Thanks for the reply. in rc.d it is sufficient to create an empty file with the same name?

Post Reply