head 1.6; access; symbols netbsd-10-0-RELEASE:1.6 netbsd-10-0-RC6:1.6 netbsd-10-0-RC5:1.6 netbsd-10-0-RC4:1.6 netbsd-10-0-RC3:1.6 netbsd-10-0-RC2:1.6 netbsd-10-0-RC1:1.6 netbsd-10:1.6.0.2 netbsd-10-base:1.6 netbsd-9-3-RELEASE:1.5 cjep_sun2x-base1:1.5 cjep_sun2x:1.5.0.102 cjep_sun2x-base:1.5 cjep_staticlib_x-base1:1.5 netbsd-9-2-RELEASE:1.5 cjep_staticlib_x:1.5.0.100 cjep_staticlib_x-base:1.5 netbsd-9-1-RELEASE:1.5 phil-wifi-20200421:1.5 phil-wifi-20200411:1.5 is-mlppp:1.5.0.98 is-mlppp-base:1.5 phil-wifi-20200406:1.5 netbsd-8-2-RELEASE:1.5 netbsd-9-0-RELEASE:1.5 netbsd-9-0-RC2:1.5 netbsd-9-0-RC1:1.5 phil-wifi-20191119:1.5 netbsd-9:1.5.0.96 netbsd-9-base:1.5 phil-wifi-20190609:1.5 netbsd-8-1-RELEASE:1.5 netbsd-8-1-RC1:1.5 pgoyette-compat-merge-20190127:1.5 pgoyette-compat-20190127:1.5 pgoyette-compat-20190118:1.5 pgoyette-compat-1226:1.5 pgoyette-compat-1126:1.5 pgoyette-compat-1020:1.5 pgoyette-compat-0930:1.5 pgoyette-compat-0906:1.5 netbsd-7-2-RELEASE:1.5 pgoyette-compat-0728:1.5 netbsd-8-0-RELEASE:1.5 phil-wifi:1.5.0.94 phil-wifi-base:1.5 pgoyette-compat-0625:1.5 netbsd-8-0-RC2:1.5 pgoyette-compat-0521:1.5 pgoyette-compat-0502:1.5 pgoyette-compat-0422:1.5 netbsd-8-0-RC1:1.5 pgoyette-compat-0415:1.5 pgoyette-compat-0407:1.5 pgoyette-compat-0330:1.5 pgoyette-compat-0322:1.5 pgoyette-compat-0315:1.5 netbsd-7-1-2-RELEASE:1.5 pgoyette-compat:1.5.0.92 pgoyette-compat-base:1.5 netbsd-7-1-1-RELEASE:1.5 matt-nb8-mediatek:1.5.0.90 matt-nb8-mediatek-base:1.5 perseant-stdc-iso10646:1.5.0.88 perseant-stdc-iso10646-base:1.5 netbsd-8:1.5.0.86 netbsd-8-base:1.5 prg-localcount2-base3:1.5 prg-localcount2-base2:1.5 prg-localcount2-base1:1.5 prg-localcount2:1.5.0.84 prg-localcount2-base:1.5 pgoyette-localcount-20170426:1.5 bouyer-socketcan-base1:1.5 pgoyette-localcount-20170320:1.5 netbsd-7-1:1.5.0.82 netbsd-7-1-RELEASE:1.5 netbsd-7-1-RC2:1.5 netbsd-7-nhusb-base-20170116:1.5 bouyer-socketcan:1.5.0.80 bouyer-socketcan-base:1.5 pgoyette-localcount-20170107:1.5 netbsd-7-1-RC1:1.5 pgoyette-localcount-20161104:1.5 netbsd-7-0-2-RELEASE:1.5 localcount-20160914:1.5 netbsd-7-nhusb:1.5.0.78 netbsd-7-nhusb-base:1.5 pgoyette-localcount-20160806:1.5 pgoyette-localcount-20160726:1.5 pgoyette-localcount:1.5.0.76 pgoyette-localcount-base:1.5 netbsd-7-0-1-RELEASE:1.5 netbsd-7-0:1.5.0.74 netbsd-7-0-RELEASE:1.5 netbsd-7-0-RC3:1.5 netbsd-7-0-RC2:1.5 netbsd-7-0-RC1:1.5 netbsd-5-2-3-RELEASE:1.5 netbsd-5-1-5-RELEASE:1.5 netbsd-6-0-6-RELEASE:1.5 netbsd-6-1-5-RELEASE:1.5 netbsd-7:1.5.0.72 netbsd-7-base:1.5 yamt-pagecache-base9:1.5 yamt-pagecache-tag8:1.5 netbsd-6-1-4-RELEASE:1.5 netbsd-6-0-5-RELEASE:1.5 tls-earlyentropy:1.5.0.70 tls-earlyentropy-base:1.5 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.5 riastradh-drm2-base3:1.5 netbsd-6-1-3-RELEASE:1.5 netbsd-6-0-4-RELEASE:1.5 netbsd-5-2-2-RELEASE:1.5 netbsd-5-1-4-RELEASE:1.5 netbsd-6-1-2-RELEASE:1.5 netbsd-6-0-3-RELEASE:1.5 netbsd-5-2-1-RELEASE:1.5 netbsd-5-1-3-RELEASE:1.5 netbsd-6-1-1-RELEASE:1.5 riastradh-drm2-base2:1.5 riastradh-drm2-base1:1.5 riastradh-drm2:1.5.0.62 riastradh-drm2-base:1.5 netbsd-6-1:1.5.0.68 netbsd-6-0-2-RELEASE:1.5 netbsd-6-1-RELEASE:1.5 khorben-n900:1.5.0.66 netbsd-6-1-RC4:1.5 netbsd-6-1-RC3:1.5 agc-symver:1.5.0.64 agc-symver-base:1.5 netbsd-6-1-RC2:1.5 netbsd-6-1-RC1:1.5 yamt-pagecache-base8:1.5 netbsd-5-2:1.5.0.60 netbsd-6-0-1-RELEASE:1.5 yamt-pagecache-base7:1.5 netbsd-5-2-RELEASE:1.5 netbsd-5-2-RC1:1.5 matt-nb6-plus-nbase:1.5 yamt-pagecache-base6:1.5 netbsd-6-0:1.5.0.58 netbsd-6-0-RELEASE:1.5 netbsd-6-0-RC2:1.5 tls-maxphys:1.5.0.56 tls-maxphys-base:1.5 matt-nb6-plus:1.5.0.54 matt-nb6-plus-base:1.5 netbsd-6-0-RC1:1.5 yamt-pagecache-base5:1.5 yamt-pagecache-base4:1.5 netbsd-6:1.5.0.52 netbsd-6-base:1.5 netbsd-5-1-2-RELEASE:1.5 netbsd-5-1-1-RELEASE:1.5 yamt-pagecache-base3:1.5 yamt-pagecache-base2:1.5 yamt-pagecache:1.5.0.50 yamt-pagecache-base:1.5 cherry-xenmp:1.5.0.48 cherry-xenmp-base:1.5 bouyer-quota2-nbase:1.5 bouyer-quota2:1.5.0.46 bouyer-quota2-base:1.5 matt-mips64-premerge-20101231:1.5 matt-nb5-mips64-premerge-20101231:1.5 matt-nb5-pq3:1.5.0.44 matt-nb5-pq3-base:1.5 netbsd-5-1:1.5.0.42 netbsd-5-1-RELEASE:1.5 netbsd-5-1-RC4:1.5 matt-nb5-mips64-k15:1.5 netbsd-5-1-RC3:1.5 netbsd-5-1-RC2:1.5 netbsd-5-1-RC1:1.5 netbsd-5-0-2-RELEASE:1.5 matt-nb5-mips64-premerge-20091211:1.5 matt-premerge-20091211:1.5 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.5 matt-nb4-mips64-k7-u2a-k9b:1.5 matt-nb5-mips64-u1-k1-k5:1.5 matt-nb5-mips64:1.5.0.40 netbsd-5-0-1-RELEASE:1.5 jym-xensuspend-nbase:1.5 netbsd-5-0:1.5.0.38 netbsd-5-0-RELEASE:1.5 netbsd-5-0-RC4:1.5 netbsd-5-0-RC3:1.5 netbsd-5-0-RC2:1.5 jym-xensuspend:1.5.0.36 jym-xensuspend-base:1.5 netbsd-5-0-RC1:1.5 mjf-devfs2-base2:1.5 netbsd-5:1.5.0.34 netbsd-5-base:1.5 matt-mips64-base2:1.5 matt-mips64:1.5.0.32 netbsd-4-0-1-RELEASE:1.5 wrstuden-revivesa-base-3:1.5 wrstuden-revivesa-base-2:1.5 wrstuden-fixsa-newbase:1.5 wrstuden-revivesa-base-1:1.5 yamt-pf42-base4:1.5 yamt-pf42-base3:1.5 hpcarm-cleanup-nbase:1.5 yamt-pf42-baseX:1.5 yamt-pf42-base2:1.5 wrstuden-revivesa:1.5.0.30 wrstuden-revivesa-base:1.5 yamt-pf42:1.5.0.28 yamt-pf42-base:1.5 mjf-devfs2:1.5.0.26 mjf-devfs2-base:1.5 keiichi-mipv6:1.5.0.24 keiichi-mipv6-base:1.5 mjf-devfs:1.5.0.22 mjf-devfs-base:1.5 matt-armv6-nbase:1.5 matt-armv6-prevmlocking:1.5 wrstuden-fixsa-base-1:1.5 netbsd-4-0:1.5.0.20 netbsd-4-0-RELEASE:1.5 cube-autoconf:1.5.0.18 cube-autoconf-base:1.5 netbsd-4-0-RC5:1.5 netbsd-4-0-RC4:1.5 netbsd-4-0-RC3:1.5 netbsd-4-0-RC2:1.5 netbsd-4-0-RC1:1.5 matt-armv6:1.5.0.16 matt-armv6-base:1.5 matt-mips64-base:1.5 hpcarm-cleanup:1.5.0.14 hpcarm-cleanup-base:1.5 netbsd-3-1-1-RELEASE:1.5 netbsd-3-0-3-RELEASE:1.5 wrstuden-fixsa:1.5.0.12 wrstuden-fixsa-base:1.5 abandoned-netbsd-4-base:1.5 abandoned-netbsd-4:1.5.0.6 netbsd-3-1:1.5.0.8 netbsd-3-1-RELEASE:1.5 netbsd-3-0-2-RELEASE:1.5 netbsd-3-1-RC4:1.5 netbsd-3-1-RC3:1.5 netbsd-3-1-RC2:1.5 netbsd-3-1-RC1:1.5 netbsd-4:1.5.0.10 netbsd-4-base:1.5 netbsd-3-0-1-RELEASE:1.5 netbsd-3-0:1.5.0.4 netbsd-3-0-RELEASE:1.5 netbsd-3-0-RC6:1.5 netbsd-3-0-RC5:1.5 netbsd-3-0-RC4:1.5 netbsd-3-0-RC3:1.5 netbsd-3-0-RC2:1.5 netbsd-3-0-RC1:1.5 netbsd-2-0-3-RELEASE:1.3.4.1 netbsd-2-1:1.3.4.1.0.4 netbsd-2-1-RELEASE:1.3.4.1 netbsd-2-1-RC6:1.3.4.1 netbsd-2-1-RC5:1.3.4.1 netbsd-2-1-RC4:1.3.4.1 netbsd-2-1-RC3:1.3.4.1 netbsd-2-1-RC2:1.3.4.1 netbsd-2-1-RC1:1.3.4.1 netbsd-2-0-2-RELEASE:1.3.4.1 netbsd-3:1.5.0.2 netbsd-3-base:1.5 netbsd-2-0-1-RELEASE:1.3.4.1 netbsd-2:1.3.4.1.0.2 netbsd-2-base:1.3.4.1 netbsd-2-0-RELEASE:1.3.4.1 netbsd-2-0-RC5:1.3.4.1 netbsd-2-0-RC4:1.3.4.1 netbsd-2-0-RC3:1.3.4.1 netbsd-2-0-RC2:1.3.4.1 netbsd-2-0-RC1:1.3.4.1 netbsd-2-0:1.3.0.4 netbsd-2-0-base:1.3 netbsd-1-6-PATCH002-RELEASE:1.3 netbsd-1-6-PATCH002:1.3 netbsd-1-6-PATCH002-RC4:1.3 netbsd-1-6-PATCH002-RC3:1.3 netbsd-1-6-PATCH002-RC2:1.3 netbsd-1-6-PATCH002-RC1:1.3 netbsd-1-6-PATCH001:1.3 netbsd-1-6-PATCH001-RELEASE:1.3 netbsd-1-6-PATCH001-RC3:1.3 netbsd-1-6-PATCH001-RC2:1.3 netbsd-1-6-PATCH001-RC1:1.3 fvdl_fs64_base:1.3 netbsd-1-6-RELEASE:1.3 netbsd-1-6-RC3:1.3 netbsd-1-6-RC2:1.3 netbsd-1-6-RC1:1.3 netbsd-1-6:1.3.0.2 netbsd-1-6-base:1.3 netbsd-1-5-PATCH003:1.2 netbsd-1-5-PATCH002:1.2 netbsd-1-5-PATCH001:1.2 netbsd-1-5-RELEASE:1.2 netbsd-1-5-BETA2:1.2 netbsd-1-5-BETA:1.2 netbsd-1-5-ALPHA2:1.2 netbsd-1-5:1.2.0.4 netbsd-1-5-base:1.2 minoura-xpg4dl:1.2.0.2 minoura-xpg4dl-base:1.2 rc-d-2000-03-10:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.6 date 2021.11.26.12.51.24; author sborrill; state Exp; branches; next 1.5; commitid 9gsahEAneX3uUiiD; 1.5 date 2004.08.13.18.08.03; author mycroft; state Exp; branches; next 1.4; 1.4 date 2004.06.03.16.27.44; author abs; state Exp; branches; next 1.3; 1.3 date 2002.03.22.04.33.59; author thorpej; state Exp; branches 1.3.4.1; next 1.2; 1.2 date 2000.05.13.08.45.08; author lukem; state Exp; branches; next 1.1; 1.1 date 2000.03.10.11.53.24; author lukem; state Exp; branches 1.1.1.1; next ; 1.3.4.1 date 2004.06.07.10.27.32; author tron; state Exp; branches; next ; 1.1.1.1 date 2000.03.10.11.53.24; author lukem; state Exp; branches; next ; desc @@ 1.6 log @Use rcvar=$name syntax consistently in rc.d scripts which makes it easier to search for rc.d scripts where rcvar differs from name. No functional change. @ text @#!/bin/sh # # $NetBSD: quota,v 1.5 2004/08/13 18:08:03 mycroft Exp $ # # PROVIDE: quota # REQUIRE: mountall # BEFORE: DAEMON $_rc_subr_loaded . /etc/rc.subr name="quota" rcvar=$name start_cmd="quota_start" stop_cmd="/usr/sbin/quotaoff -a" quota_start() { echo -n "Checking quotas:" /usr/sbin/quotacheck -a echo " done." /usr/sbin/quotaon -a } load_rc_config $name run_rc_command "$1" @ 1.5 log @Add an _rc_subr_loaded variable, set to ":" by rc.subr. Scripts can use this for a speedup by doing: $_rc_subr_loaded . /etc/rc.subr @ text @d3 1 a3 1 # $NetBSD: quota,v 1.4 2004/06/03 16:27:44 abs Exp $ d13 1 a13 1 rcvar="quota" @ 1.4 log @Add rcvar="quota" @ text @d3 1 a3 1 # $NetBSD: quota,v 1.3 2002/03/22 04:33:59 thorpej Exp $ d10 1 a10 1 . /etc/rc.subr @ 1.3 log @Correct the "direction" of the barrier dependencies (DAEMON, LOGIN, NETWORKING, and SERVERS) by specifying that certain things should come BEFORE a given barrier, rather than having the barrier REQUIRE a service. This allows scripts to be removed without having to edit the barrier dependencies. As discussed on tech-userlevel, and approved by Luke. @ text @d3 1 a3 1 # $NetBSD: quota,v 1.2 2000/05/13 08:45:08 lukem Exp $ d13 1 @ 1.3.4.1 log @Pull up revision 1.4 (requested by abs in ticket #455): Add rcvar="quota" @ text @d3 1 a3 1 # $NetBSD$ a12 1 rcvar="quota" @ 1.2 log @Use load_rc_config() (from rc.subr) instead of sourcing /etc/rc.conf. This allows us or a user to change the configuration file method in one place - rc.subr - without having to edit all of the rc.d/* files. @ text @d3 1 a3 1 # $NetBSD: quota,v 1.1.1.1 2000/03/10 11:53:24 lukem Exp $ d8 1 @ 1.1 log @Initial revision @ text @d3 1 a3 1 # $NetBSD$ a9 1 . /etc/rc.conf d23 1 @ 1.1.1.1 log @rc.d scripts derived from /etc/rc @ text @@