2
votes
Accepted
Shutdown command vs cron jobs
The shutdown command doesn't know anything about cron jobs, but if you're on a modern system then shutdown is actually handled by systemd, and systemd knows about inhibitors, which allow you to ...
1
vote
cron "@reboot" schedule not executing network configuration script
The network interfaces are not ready when the cron script is being executed. Delay it with:
@reboot sleep [time in seconds] && /home/<user>/startup.sh
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
cron × 2337linux × 349
bash × 288
shell-script × 283
ubuntu × 173
debian × 143
shell × 134
scripting × 104
centos × 103
scheduling × 77
python × 76
logs × 72
email × 56
raspberry-pi × 52
ssh × 46
environment-variables × 42
rhel × 41
rsync × 40
systemd × 39
permissions × 35
backup × 35
php × 35
io-redirection × 32
date × 32
reboot × 32