[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.2 and 1.8

version 1.2, 2000/05/13 08:45:10 version 1.8, 2004/08/13 18:08:03
Line 4 
Line 4 
 #  #
   
 # PROVIDE: virecover  # PROVIDE: virecover
 # REQUIRE: systemfs  # 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()  
 {  
         #       XXX: replace me with a script that works!  
         #  
         virecovery=`echo /var/tmp/vi.recover/recover.*`  
         if [ "$virecovery" != "/var/tmp/vi.recover/recover.*" ]; then  
                 echo "Preserving editor files."  
                 for i in $virecovery; do  
                         if [ -f $i ]; then  
                                 sendmail -t < $i  
                         fi  
                 done  
         fi  
 }  
   
 load_rc_config $name  load_rc_config $name
 run_rc_command "$1"  run_rc_command "$1"

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

CVSweb <webmaster@jp.NetBSD.org>