06-15-2017 08:13 AM
Hi,
I have to periodically check that a drive is mounted. I do it at startup and it work fine adding mountnfs and fstab in rc2-3-4, etc. BUT if the network drive die or reboot, I lost it and it never work again.
Doing "mount -a" in the command shell remount properly.
I would like to periodically do this command with crontab or other but I can't get cronie to work. When editing "crontab -e" and adding the command, it says "segmentaiton fault"
I would like to add "mount -a" every hour.
Let me know if you can help!
Thank you
Patrick
Solved! Go to Solution.
06-15-2017 09:19 AM
Hi paubine,
The issue you're running into is cronie taking too much stack and being killed off.
You can either raise the stack limit for the currently-running shell (and all children of the shell) by using ulimit -s unlimited and rerunning crontab -e
---or---
directly edit the crontab file (/etc/cron* files, currently the logrotate crontab file exists at /etc/cron.d/logrotate)
06-15-2017 10:48 AM
Thank you.
That worked, "crontab -e" created a file in /var/spool/cron/ called admin