Chotaire Wiki

Stuff you didn't know

User Tools

Site Tools


linux-autostart-cron

Autostart tty applications after reboot using crontab

This will autostart any tty dependant application, regardless if rc.local support is present or whether there is systemd or sysvinit in use. This is not the most elegant way, but it always works.

Edit the crontab of the user who is going to run the application:

crontab -u <USERNAME> -e

Paste the following and edit accordingly, save to disk, done:

MAILTO=""
@reboot sleep 20 ; nohup /home/<USERNAME>/<BINARY> --<PARAMETERS> >/dev/null 2>&1 &



linux-autostart-cron.txt ยท Last modified: 2019/04/20 16:54 by chotaire