Skip to content

Instantly share code, notes, and snippets.

@corerman
Created April 23, 2018 10:01
Show Gist options
  • Save corerman/7fa476510c923e4308eccbe27c1eed1f to your computer and use it in GitHub Desktop.
Save corerman/7fa476510c923e4308eccbe27c1eed1f to your computer and use it in GitHub Desktop.
crontab 开机启动
A user can edit its cron table with crontab -e.
An example which will run /path/to/script.sh at startup:
@reboot /path/to/script.sh
If you need to run it as root, don't use @reboot sudo /path/to/script.sh;
use sudo crontab -eu root to edit root's crontab.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment