[BACK]Return to virecover CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / etc / rc.d

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/etc/rc.d/virecover between version 1.4 and 1.8

version 1.4, 2000/10/09 05:33:53 version 1.8, 2004/08/13 18:08:03
Line 5 
Line 5 
   
 # PROVIDE: virecover  # PROVIDE: virecover
 # REQUIRE: mountcritremote  # REQUIRE: mountcritremote
   # BEFORE:  DAEMON
 #  #
 # XXX: should require `mail'!  # XXX: should require `mail'!
   
 . /etc/rc.subr  $_rc_subr_loaded . /etc/rc.subr
   
 name="virecover"  name="virecover"
 start_cmd="virecover_start"  rcvar=$name
   command="/usr/libexec/${name}"
 stop_cmd=":"  stop_cmd=":"
   reload_cmd=":"
 virecover_start()  
 {  
         recover=`find /var/tmp/vi.recover -name 'recover.*' -type f -print`  
         if [ -n "$recover" ]; then  
                 echo "Preserving editor files."  
                 for i in $recover; do  
                         sendmail -t < $i  
                 done  
         fi  
 }  
   
 load_rc_config $name  load_rc_config $name
 run_rc_command "$1"  run_rc_command "$1"

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.8

CVSweb <webmaster@jp.NetBSD.org>