crontab_on_freebsd
root@ks3367031:~ # cat /etc/crontab # /etc/crontab - root's crontab for FreeBSD # # $FreeBSD: releng/11.2/etc/crontab 194170 2009-06-14 06:37:19Z brian $ # SHELL=/bin/sh PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin # #minute hour mday month wday who command # */5 * * * * root /usr/libexec/atrun # # Save some entropy so that /dev/random can re-seed on boot. */11 * * * * operator /usr/libexec/save-entropy # # Rotate log files every hour, if necessary. 0 * * * * root newsyslog # # Perform daily/weekly/monthly maintenance. 1 3 * * * root periodic daily 15 4 * * 6 root periodic weekly 30 5 1 * * root periodic monthly # # Adjust the time zone if the CMOS clock keeps local time, as opposed to # UTC time. See adjkerntz(8) for details. 1,31 0-5 * * * root adjkerntz -a 0 1 * * * root /usr/local/bin/dokuwiki.sh
Per far partire uno script come user, invece, si usa il comando
crontab -e
(Questo è fondamentale per risolvere i problemi di crontab in FreeBSD!)
Su ks quindi avrò
@reboot ./rslsync --webui.listen 0.0.0.0:8888
mentre sul NUC
@reboot ./rslsync --webui.listen 0.0.0.0:8888 0 5 * * * ./dokuwiki_NUC.sh
crontab_on_freebsd.txt · Last modified: 2020/06/24 11:02 by francesco