How Do I Run a Program at Startup in Linux?
Contents How Do I Start a Program at Startup in Linux? Automatically Run Program on Linux Startup via Cron Open the Default Crontab Editor. $ Crontab -E. … Add...
Contents
How do I start a program at startup in Linux?
Automatically run program on Linux startup via cron
- Open the default crontab editor. $ crontab -e. …
- Add a line starting with @reboot. …
- Insert the command to start your program after the @reboot. …
- Save the file to install it to the crontab. …
- Check if crontab is properly configured (optional).
Must Read
How do I start a process at startup?
How to start a program on Linux automatically on boot
- Create the sample script or program that we want to automatically start on boot.
- Create a system unit (also known as a service)
- Configure your service to automatically start on boot.