Score:0

How to run a script as root on startup - Ubuntu 20.4?

cn flag

I know there are a lot of question like this but I did not find an answer yet so I hope any of you can help.

Is there any way i can run a script or command as root when the computer starts? the command is something like service --start and i want it to start as soon as my device starts.

Thank you!

jpbrain avatar
ca flag
hi @Diana. There are several ways to do that and the election depends on what the program does or you are trying to achieve. it can be rc.local, it can be configured as a new service, it can be launched by crontab with the "@reboot" directive.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.