Update of /cvsroot/bobs/bobs/cron
In directory sc8-pr-cvs1:/tmp/cvs-serv7978/cron
Modified Files:
Makefile.am
Log Message:
'make install' adds check_loop to /etc/crontab.
'make uninstall' removes check_loop from /etc/crontab.
Index: Makefile.am
===================================================================
RCS file: /cvsroot/bobs/bobs/cron/Makefile.am,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- Makefile.am 22 Dec 2002 02:30:32 -0000 1.1
+++ Makefile.am 3 Feb 2003 05:47:05 -0000 1.2
@@ -10,3 +10,27 @@
processdir = $(myBOBSDATA)/current/process
dist_process_SCRIPTS = check_loop
+
+install-data-local:
+
+#
+# This section contains things to do during 'make install'
+#
+
+# Add 'check_loop' to crontab
+
+# backup crontab
+ cp -vp /etc/crontab /etc/crontab.bak
+# Copy back all but check_loop
+ grep -v current/process/check_loop /etc/crontab.bak > /etc/crontab
+# Add check_loop
+ echo '0-59/5 * * * * root $(myBOBSDATA)/current/process/check_loop' >> /etc/crontab
+
+# Remove 'check_loop' from crontab
+
+uninstall-local:
+
+# backup crontab
+ cp -vp /etc/crontab /etc/crontab.bak
+# Copy back all but check_loop
+ grep -v current/process/check_loop /etc/crontab.bak > /etc/crontab
|