crontab

  1. Aknot

    Restart Apache 2.4 in crontab after renewing letsencrypt certs with acme.sh?

    Hello everyone, Is it possible to restart www/apache24 from crontab after successfully renewing letsencrypt certs with security/acme.sh? This is what I have now (run each night 03:00): * 3 * * * /usr/local/sbin/acme.sh --cron >> /var/log/acme.cron.log Thank you,
  2. JonnySac

    cron daemon date/time +4 hours ahead of system date/time on RPI4?

    Hi, I've been using FreeBSD 13.0 on an RPI 4 and I noticed something weird when setting up a cron job. I could not get the cron job to run, so I inspected /var/log/cron and found 2 different datetimes. As you can see below, it logs when I edit the crontab using the correct datetime of the...
  3. Dogers

    Solved Crontab - Create ramdisk at launch fails.

    Greetings everyone. I want to create a memory disk for testing purpose automatically every-time I launch my FreeBSD workstation. Everything I have tried has failed. But it comes probably from me since I am a totally beginner at using cron. Here is what I have done until here : -Created a...
  4. I

    cron job not working

    I have set up my cron job as following: 0 0 1 * * certbot renew while as a root user (switched to root using "su -l root") using the "crontab -e" command. I have further confirmed that it does appear in the file "/var/cron/tabs/root". However, the cron command is never fired. Why? And, how...
  5. S

    Solved periodic via crontab will not follow MAILTO settings

    1) Could someone explain why periodic daily/weekly/monthly commands set in /etc/crontab will ignore settings: MAILTO="emailoutside@somedomain.com" or MAILTO="" Other tasks are good to follow what crontab(5) says, but periodic will not and always send emails to the owner (i.e. root from "who"...
  6. daBee

    nginx kill nginx.pid

    Hi folks. Other confusion with nginx. I'm trying some regular log rollovers and want to kill the process. I have read that after moving and renaming my nginx.log, I want to do this: kill -USR1 $( cat /var/run/nginx.pid ) That is the proper location of the pid file. The kill stops the...
  7. M

    Solved cronjob and locale

    Hello there, I have a python script that does something with the files. In user profile I've set locale to UTF-8, since some filenames/folders use special characters (other language than ENG). When I run script under the user profile, everything is working fine, but when I run it under the...
  8. C

    Shell Shell Script in Jail: TAR doesn't quit

    I am having an issue backing up our moodle server. This is with FreeNAS11. For some reason it seems like the TAR never stops despite it finishing and creating an actual file. Or, for whatever reason, the Hard Drive is continually accessed at a rate of 20 to 30 MBs until I reset the jail with...
  9. A

    Solved Script not running from Cron

    Hello, I have that sh script: #!/bin/sh DATE=`date +%Y-%m-%d:%H:%M:%S` NAME="game" if ps ax | grep -v grep | grep $NAME > /dev/null then echo "$NAME service running, everything is fine" else echo "$DATE: Restarting $NAME" >> /root/log cd /usr/home/game/db && ./game fi and it works...
  10. patpro

    Solved nss_ldap problem with only few base system commands

    Hello, I'm running a bunch of FreeBSD 10.3-RELEASE servers (MX servers, Web servers…). All of them are bound to an LDAP server for user authentication/access. I can ssh to those server with my LDAP account, I can use id, ldapsearch and so on without any problem. The LDAP server is queried over...
  11. F

    Setup Script to run at boot using crontab?

    Hi, So I'm trying to set a script, so it starts on boot. The problem is, I'm using "@reboot" and I don't think that is working. I have: Tried modifying /etc/crontab as root using crontab -e -u syncthing tried various commands, IE: "@restart touch /home/syncthing/test" I have surfed the net...
  12. A

    Change cron default sendmail to mail

    I'm running FreeBSD 11.0-RELEASE. On default cron is using /usr/lib/sendmail to send user emails. How can I tell/set cron to use /bin/mail instead? crontab(5) says in the section about the MAILTO var: This option is useful if you decide on /bin/mail instead of /usr/lib/sendmail as your mailer...
  13. S

    Solved shell script cron job not working

    hi all, I have a shell script code as cron job that check the pool status and save it in a sqlite database. when I run it from terminal. it work properly but in crontab it does't work. The crontab: # SHELL=/bin/sh PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/etc/myjob/pool # #minute hour...
  14. sidetone

    Solved Package vulnerability vuxml warning on desktop startup

    I kind of have an idea for how to make a popup for when a vulnerability is presented. For the root crontab I have @reboot pkg audit -F @hourly pkg audit -F I can use pkg audit as a non-root user to find the alert, but this doesn't alert me automatically when it becomes present. Next, I found...
  15. talsamon

    Solved crontab desktop notification

    Try make a desktop notification with crontab. The line in the crontab is: 30 * * * * user export DISPLAY=:0.0 && /usr/local/bin/myscript. Working with notify-send in the script, my window manager is fvwm-crystal. /var/log/cron says it is executed. but I am seeing nothing on desktop. On...
  16. M

    Restart xbmc via crontab

    Hi! Configuration: 9.1 64-bit, default kernel Nvidia drivers as per the handbook X.Org on startup Xfce desktop manager If I let xbmc open for a few days at idle, at the welcome screen on my HTPC/ZFS file server and then start playing a video, it's not smooth. Every couple of seconds it stops...
Top