|If you routinely need to remove apache semaphores with the ipcs/ipcrm tool, and if you cannot sort out why they keep building up, then using a cronjob to automatically clear them out if they've piled up may help.|
UPDATE: DirectAdmin 1.53.0+ now has a hook script which can be called, instead of using a cron. This should provide faster reaction times for a downed service:
where you'd use the script below, after confirming the "$service" is "httpd", eg:
if [ "$service" != "httpd" ]; then
Else for the cron method, create the script in:
/etc/cron.hourly/ipcs_checkwith the contents:
chmod 755 /etc/cron.hourly/ipcs_check
Check your /var/log/cron on each hour, to ensure that crond is running it.
If all is well, then there shouldn't be any issues, and the script will exit with a return code of 0.
|semget: No space left on device|
© 2003 JBMC Software, Suite 173 3-11 Bellerose Drive, St Albert, AB T8N 1P7 Canada. Mon-Fri 9AM-5PM MST