From: Joe Z. <jz...@us...> - 2004-03-28 22:44:44
|
Update of /cvsroot/bobs/bobs/cron In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25059/bobs/cron Modified Files: Makefile.am Makefile.in Removed Files: check_loop.in Log Message: Start cmdloop from /etc/init.d/cmdloopd instead of using check_loop in /etc/crontab. Index: Makefile.am =================================================================== RCS file: /cvsroot/bobs/bobs/cron/Makefile.am,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Makefile.am 24 Mar 2003 05:39:58 -0000 1.4 +++ Makefile.am 28 Mar 2004 22:33:22 -0000 1.5 @@ -5,44 +5,4 @@ cron_SCRIPTS = backup.php -# install to bobs script directory - -processdir = $(myBOBSDATA)/current/process - -process_SCRIPTS = check_loop - -install-data-local: - -# -# This section contains things to do during 'make install' -# - -# Add 'check_loop' to crontab - -# Make the crontab directory (for testing distribution with 'make distcheck') - $(top_srcdir)/mkinstalldirs $(myCRONTABDIR) - -# backup crontab -# Copy back all but check_loop -# Add check_loop - if test -f "$(myCRONTABDIR)/crontab"; then \ - cp -vp $(myCRONTABDIR)/crontab $(myCRONTABDIR)/crontab.bak; \ - grep -v current/process/check_loop \ - $(myCRONTABDIR)/crontab.bak > $(myCRONTABDIR)/crontab; \ - echo '0-59/5 * * * * root $(myBOBSDATA)/current/process/check_loop' \ - >> $(myCRONTABDIR)/crontab; \ - fi - -# Remove 'check_loop' from crontab - -uninstall-local: - -# backup crontab -# Copy back all but check_loop - if test -f "$(myCRONTABDIR)/crontab"; then \ - cp -vp $(myCRONTABDIR)/crontab $(myCRONTABDIR)/crontab.bak; \ - grep -v current/process/check_loop $(myCRONTABDIR)/crontab.bak \ - > $(myCRONTABDIR)/crontab; \ - fi - # END Index: Makefile.in =================================================================== RCS file: /cvsroot/bobs/bobs/cron/Makefile.in,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- Makefile.in 24 Apr 2003 06:15:57 -0000 1.5 +++ Makefile.in 28 Mar 2004 22:33:22 -0000 1.6 @@ -77,32 +77,28 @@ install_sh = @install_sh@ myBOBSDATA = @myBOBSDATA@ myCRONDIR = @myCRONDIR@ -myCRONTABDIR = @myCRONTABDIR@ myHTTPDUSER = @myHTTPDUSER@ +myLOGDIR = @myLOGDIR@ myMANDIR = @myMANDIR@ myPASS = @myPASS@ +mySYSCONFDIR = @mySYSCONFDIR@ myWEBDIR = @myWEBDIR@ myrealBOBSDATA = @myrealBOBSDATA@ myrealCRONDIR = @myrealCRONDIR@ -myrealCRONTABDIR = @myrealCRONTABDIR@ +myrealLOGDIR = @myrealLOGDIR@ +myrealSYSCONFDIR = @myrealSYSCONFDIR@ myrealWEBDIR = @myrealWEBDIR@ crondir = $(myCRONDIR) cron_SCRIPTS = backup.php - - -# install to bobs script directory -processdir = $(myBOBSDATA)/current/process - -process_SCRIPTS = check_loop subdir = cron mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs -CONFIG_CLEAN_FILES = backup.php check_loop -SCRIPTS = $(cron_SCRIPTS) $(process_SCRIPTS) +CONFIG_CLEAN_FILES = backup.php +SCRIPTS = $(cron_SCRIPTS) DIST_SOURCES = -DIST_COMMON = Makefile.am Makefile.in backup.php.in check_loop.in +DIST_COMMON = Makefile.am Makefile.in backup.php.in all: all-am .SUFFIXES: @@ -113,8 +109,6 @@ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) backup.php: $(top_builddir)/config.status backup.php.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ -check_loop: $(top_builddir)/config.status check_loop.in - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ cronSCRIPT_INSTALL = $(INSTALL_SCRIPT) install-cronSCRIPTS: $(cron_SCRIPTS) @$(NORMAL_INSTALL) @@ -135,26 +129,6 @@ echo " rm -f $(DESTDIR)$(crondir)/$$f"; \ rm -f $(DESTDIR)$(crondir)/$$f; \ done -processSCRIPT_INSTALL = $(INSTALL_SCRIPT) -install-processSCRIPTS: $(process_SCRIPTS) - @$(NORMAL_INSTALL) - $(mkinstalldirs) $(DESTDIR)$(processdir) - @list='$(process_SCRIPTS)'; for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - if test -f $$d$$p; then \ - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ - echo " $(processSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(processdir)/$$f"; \ - $(processSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(processdir)/$$f; \ - else :; fi; \ - done - -uninstall-processSCRIPTS: - @$(NORMAL_UNINSTALL) - @list='$(process_SCRIPTS)'; for p in $$list; do \ - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ - echo " rm -f $(DESTDIR)$(processdir)/$$f"; \ - rm -f $(DESTDIR)$(processdir)/$$f; \ - done uninstall-info-am: tags: TAGS TAGS: @@ -190,7 +164,7 @@ all-am: Makefile $(SCRIPTS) installdirs: - $(mkinstalldirs) $(DESTDIR)$(crondir) $(DESTDIR)$(processdir) + $(mkinstalldirs) $(DESTDIR)$(crondir) install: install-am install-exec: install-exec-am @@ -232,8 +206,7 @@ info-am: -install-data-am: install-cronSCRIPTS install-data-local \ - install-processSCRIPTS +install-data-am: install-cronSCRIPTS install-exec-am: @@ -251,54 +224,17 @@ mostlyclean-am: mostlyclean-generic -uninstall-am: uninstall-cronSCRIPTS uninstall-info-am uninstall-local \ - uninstall-processSCRIPTS +uninstall-am: uninstall-cronSCRIPTS uninstall-info-am .PHONY: all all-am check check-am clean clean-generic distclean \ distclean-generic distdir dvi dvi-am info info-am install \ install-am install-cronSCRIPTS install-data install-data-am \ - install-data-local install-exec install-exec-am install-info \ - install-info-am install-man install-processSCRIPTS \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-generic uninstall uninstall-am \ - uninstall-cronSCRIPTS uninstall-info-am uninstall-local \ - uninstall-processSCRIPTS - - -install-data-local: - -# -# This section contains things to do during 'make install' -# - -# Add 'check_loop' to crontab - -# Make the crontab directory (for testing distribution with 'make distcheck') - $(top_srcdir)/mkinstalldirs $(myCRONTABDIR) - -# backup crontab -# Copy back all but check_loop -# Add check_loop - if test -f "$(myCRONTABDIR)/crontab"; then \ - cp -vp $(myCRONTABDIR)/crontab $(myCRONTABDIR)/crontab.bak; \ - grep -v current/process/check_loop \ - $(myCRONTABDIR)/crontab.bak > $(myCRONTABDIR)/crontab; \ - echo '0-59/5 * * * * root $(myBOBSDATA)/current/process/check_loop' \ - >> $(myCRONTABDIR)/crontab; \ - fi - -# Remove 'check_loop' from crontab - -uninstall-local: + install-exec install-exec-am install-info install-info-am \ + install-man install-strip installcheck installcheck-am \ + installdirs maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-generic uninstall uninstall-am \ + uninstall-cronSCRIPTS uninstall-info-am -# backup crontab -# Copy back all but check_loop - if test -f "$(myCRONTABDIR)/crontab"; then \ - cp -vp $(myCRONTABDIR)/crontab $(myCRONTABDIR)/crontab.bak; \ - grep -v current/process/check_loop $(myCRONTABDIR)/crontab.bak \ - > $(myCRONTABDIR)/crontab; \ - fi # END # Tell versions [3.59,3.63) of GNU make to not export all variables. --- check_loop.in DELETED --- |