We have a number of jails running on several hosts. I was examining the /etc/crontab files and noted that the file contents differ slightly from jail to jail. Some have this:
# /etc/crontab - root's crontab for FreeBSD
# $FreeBSD: releng/12.3/usr.sbin/cron/cron/crontab 338497 2018-09-06...
Hello, I wan't to edit my crontrab in order to add one simple script, but I'm really unfamilir with vi or vim and already forgot how to exit from it few times (can't rememer how many), so using crontab -e is not the way for me, so I've tried to change my EDITOR variable to nano from my current...
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.
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...
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...
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...