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
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...
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 :
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...
1) Could someone explain why periodic daily/weekly/monthly commands set in /etc/crontab will ignore settings:
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"...
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...
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...
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...
Hello, I have that sh script:
if ps ax | grep -v grep | grep $NAME > /dev/null
echo "$NAME service running, everything is fine"
echo "$DATE: Restarting $NAME" >> /root/log
cd /usr/home/game/db && ./game
and it works...
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...
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.
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...
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...
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.