cvs commit: LFS/bootscripts/blfs/init.d fam

nathan at linuxfromscratch.org nathan at linuxfromscratch.org
Tue Mar 23 16:54:54 PST 2004


nathan      04/03/23 17:54:54

  Modified:    bootscripts CHANGELOG Makefile
  Added:       bootscripts/blfs/init.d fam
  Log:
  Added fam to the BLFS section
  
  Revision  Changes    Path
  1.38      +1 -0      LFS/bootscripts/CHANGELOG
  
  Index: CHANGELOG
  ===================================================================
  RCS file: /home/cvsroot/LFS/bootscripts/CHANGELOG,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- CHANGELOG	24 Mar 2004 00:24:52 -0000	1.37
  +++ CHANGELOG	24 Mar 2004 00:54:54 -0000	1.38
  @@ -4,6 +4,7 @@
   	* Added a script which can automatically create files and directories
   	  on startup.  [Handles files/directories, permissions, and user/group].
   	  Created by Zack
  +	* Added blfs/init.d/fam script
   
   n/a - March 20, 2004
   
  
  
  
  1.17      +10 -0     LFS/bootscripts/Makefile
  
  Index: Makefile
  ===================================================================
  RCS file: /home/cvsroot/LFS/bootscripts/Makefile,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- Makefile	23 Mar 2004 18:38:45 -0000	1.16
  +++ Makefile	24 Mar 2004 00:54:54 -0000	1.17
  @@ -138,6 +138,16 @@
   	ln -s  ../init.d/exim ${EXTDIR}/rc.d/rc5.d/S35exim
   	ln -s  ../init.d/exim ${EXTDIR}/rc.d/rc6.d/K25exim
   
  +install-fam: create-dirs
  +	install -m 754 blfs/init.d/fam      ${EXTDIR}/rc.d/init.d/
  +	ln -s  ../init.d/fam ${EXTDIR}/rc.d/rc0.d/K37fam
  +	ln -s  ../init.d/fam ${EXTDIR}/rc.d/rc1.d/K37fam
  +	ln -s  ../init.d/fam ${EXTDIR}/rc.d/rc2.d/S23fam
  +	ln -s  ../init.d/fam ${EXTDIR}/rc.d/rc3.d/S23fam
  +	ln -s  ../init.d/fam ${EXTDIR}/rc.d/rc4.d/S23fam
  +	ln -s  ../init.d/fam ${EXTDIR}/rc.d/rc5.d/S23fam
  +	ln -s  ../init.d/fam ${EXTDIR}/rc.d/rc6.d/K39fam
  +
   install-fcron: create-dirs
   	install -m 754 blfs/init.d/fcron      ${EXTDIR}/rc.d/init.d/
   	ln -s  ../init.d/fcron ${EXTDIR}/rc.d/rc0.d/K08fcron
  
  
  
  1.1                  LFS/bootscripts/blfs/init.d/fam
  
  Index: fam
  ===================================================================
  #!/bin/sh
  # Begin $rc_base/init.d/fam
  
  # Based on sysklogd script from LFS-3.1 and earlier.
  # Rewritten by Gerard Beekmans  - gerard at linuxfromscratch.org
  
  . /etc/sysconfig/rc
  . $rc_functions
  
  case "$1" in
  	start)
  		echo "Starting File Alteration Monitor..."
  		loadproc fam -T 0
  		;;
  
  	stop)
  		echo "Stopping File Alteration Monitor..."
  		killproc fam
  		;;
  
  	reload)
  		echo "Reloading File Alteration Monitor..."
  		reloadproc fam
  		;;
  
  	restart)
  		$0 stop
  		sleep 1
  		$0 start
  		;;
  
  	status)
  		statusproc fam
  		;;
  
  	*)
  		echo "Usage: $0 {start|stop|reload|restart|status}"
  		exit 1
  		;;
  esac
  
  # End $rc_base/init.d/fam
  
  
  



More information about the lfs-book mailing list