summaryrefslogtreecommitdiff
path: root/sysutils/safetynet
diff options
context:
space:
mode:
authorzuntum <zuntum@pkgsrc.org>2001-03-27 19:14:44 +0000
committerzuntum <zuntum@pkgsrc.org>2001-03-27 19:14:44 +0000
commitc5b3009257e4739281e4d80aa320a9c9db26e49e (patch)
tree00f05517af2b7394973406c80f70baf9e8a6ccaf /sysutils/safetynet
parentd9f546ce96901a01bbe5fde24b62c9a41be014bf (diff)
downloadpkgsrc-c5b3009257e4739281e4d80aa320a9c9db26e49e.tar.gz
Initial import of safetynet-1.15
safetynet allows you to monitor and restart processes without having to write large and complicated init scripts. The config file is easy to understand and learn and you can have the whole script setup and running in under 10m, so you can get on with doing more important things than worrying if your ssh daemon is still running.
Diffstat (limited to 'sysutils/safetynet')
-rw-r--r--sysutils/safetynet/Makefile35
-rw-r--r--sysutils/safetynet/files/md53
-rw-r--r--sysutils/safetynet/pkg/DESCR10
-rw-r--r--sysutils/safetynet/pkg/PLIST5
4 files changed, 53 insertions, 0 deletions
diff --git a/sysutils/safetynet/Makefile b/sysutils/safetynet/Makefile
new file mode 100644
index 00000000000..386dce3fe88
--- /dev/null
+++ b/sysutils/safetynet/Makefile
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/03/27 19:14:44 zuntum Exp $
+#
+
+DISTNAME= safetynet-1.15
+CATEGORIES= sysutils
+MASTER_SITES= http://www.unixpimps.org/safetynet/
+
+MAINTAINER= zuntum@netbsd.org
+HOMEPAGE= http://www.unixpimps.org/safetynet/
+COMMENT= safetynet is a perl script intended to monitor system services
+
+WRKSRC= ${WRKDIR}
+
+NO_BUILD= YES
+USE_PERL5= YES
+
+post-patch:
+ ${SED} -e "s,/etc/safetynet.conf,${PREFIX}/etc/safetynet.conf,g" \
+ -e "s,/bin/mail,/usr/bin/mail,g" \
+ -e "s,ps -Af,ps ax,g" \
+ -e "s,/usr/bin/perl,${LOCALBASE}/bin/perl,g" \
+ ${WRKSRC}/safetynet > ${WRKSRC}/safetynet.done
+ ${MV} -f ${WRKSRC}/safetynet.done ${WRKSRC}/safetynet
+ ${SED} -e "s,/usr/local/apache/bin/apachectl,${LOCALBASE}/sbin/apachectl,g" \
+ -e "s,/usr/local,${PREFIX},g" \
+ ${WRKSRC}/safetynet.conf > ${WRKSRC}/safetynet.conf.done
+ ${MV} ${WRKSRC}/safetynet.conf.done ${WRKSRC}/safetynet.conf
+
+do-install:
+ ${INSTALL_SCRIPT} -m 700 ${WRKSRC}/safetynet ${PREFIX}/bin/safetynet
+ ${INSTALL_DATA} -m 600 ${WRKSRC}/safetynet.conf ${PREFIX}/etc/safetynet.conf.sample
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/safetynet
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/safetynet/README
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/safetynet/files/md5 b/sysutils/safetynet/files/md5
new file mode 100644
index 00000000000..bb9ad18b587
--- /dev/null
+++ b/sysutils/safetynet/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2001/03/27 19:14:44 zuntum Exp $
+
+MD5 (safetynet-1.15.tar.gz) = 5d030cca411a5b1c4e9946eb9f8c255b
diff --git a/sysutils/safetynet/pkg/DESCR b/sysutils/safetynet/pkg/DESCR
new file mode 100644
index 00000000000..d147abaaddd
--- /dev/null
+++ b/sysutils/safetynet/pkg/DESCR
@@ -0,0 +1,10 @@
+safetynet allows you to monitor and restart processes without having to
+write large and complicated init scripts. The config file is easy to
+understand and learn and you can have the whole script setup and running
+in under 10m, so you can get on with doing more important things than
+worrying if your ssh daemon is still running.
+
+You will probably want to add a crontab entry for root
+(crontab -e as root) such as
+0,15,30,45 * * * * ${PREFIX}/bin/safetynet --cron
+which will cause the script to be run every 15 minutes.
diff --git a/sysutils/safetynet/pkg/PLIST b/sysutils/safetynet/pkg/PLIST
new file mode 100644
index 00000000000..e6cda8da6ca
--- /dev/null
+++ b/sysutils/safetynet/pkg/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/03/27 19:14:44 zuntum Exp $
+bin/safetynet
+etc/safetynet.conf.sample
+share/doc/safetynet/README
+@dirrm share/doc/safetynet