The firewall’s hard drive gave up whilst I was on hoiliday last week. It has been replaced and reinstalled.
8 year old Compaq Deskpro, quietly sifting through packets, on its third HDD. Omm nom nom nom…
The firewall’s hard drive gave up whilst I was on hoiliday last week. It has been replaced and reinstalled.
8 year old Compaq Deskpro, quietly sifting through packets, on its third HDD. Omm nom nom nom…
![]() |
checkprocess.sh – Check process & restart |
I have a process that has been crashing every few days, but needs to be running 24/7 to be effective. Until I find the time to seek out the cause, I need the process to be restarted.
This short SH script uses PS to check that the process is running, and if not, runs the given init-script to restart the service.
Syntax:
checkprocess.sh [process] [init-script]
Example:
checkprocess.sh myprocess /etc/init.d/myprocess
checkprocess.sh writes a log at /var/log/checkprocess.log, and sends an alert mail to root should the process require restarting.
Put the checkprocess.sh command into crontab to check regular for the crashed process. For debian the crontab entry would look similar to:
*/1 * * * * root /usr/local/bin/checkprocess.sh mythbackend /etc/init.d/myth-backend
Download
checkprocess.sh (723 bytes, 3,053 hits)
![]() |
exiv2 — compile issue |
Being given a DVD of photos, I ran my exifsort script to sort the images into date stamped folders and found the camera that had taken the pictures had the year set to 2026.
I came accross a handy utility to modify the EXIF timestamp of the images called exiv2 at www.exiv2.org. Unfortunately Debians repository is horribly out of date, so I grabbed the source from their site.
I began with a ./configure and came accross this error:
configure: error: either specify a valid expat installation with --with-expat=DIR or disable XMP support with --disable-xmp
It was easily fixed by installing the libexpat1-dev package,
apt-get install libexpat1-dev
Exiv2 compiled nicely after that.