head 1.18; access; symbols netbsd-10-0-RELEASE:1.18 netbsd-10-0-RC6:1.18 netbsd-10-0-RC5:1.18 netbsd-10-0-RC4:1.18 netbsd-10-0-RC3:1.18 netbsd-10-0-RC2:1.18 netbsd-10-0-RC1:1.18 netbsd-10:1.18.0.6 netbsd-10-base:1.18 netbsd-9-3-RELEASE:1.15 cjep_sun2x-base1:1.18 cjep_sun2x:1.18.0.4 cjep_sun2x-base:1.18 cjep_staticlib_x-base1:1.18 netbsd-9-2-RELEASE:1.15 cjep_staticlib_x:1.18.0.2 cjep_staticlib_x-base:1.18 netbsd-9-1-RELEASE:1.15 phil-wifi-20200421:1.17 phil-wifi-20200411:1.17 is-mlppp:1.17.0.2 is-mlppp-base:1.17 phil-wifi-20200406:1.17 netbsd-8-2-RELEASE:1.15 netbsd-9-0-RELEASE:1.15 netbsd-9-0-RC2:1.15 netbsd-9-0-RC1:1.15 phil-wifi-20191119:1.15 netbsd-9:1.15.0.68 netbsd-9-base:1.15 phil-wifi-20190609:1.15 netbsd-8-1-RELEASE:1.15 netbsd-8-1-RC1:1.15 pgoyette-compat-merge-20190127:1.15 pgoyette-compat-20190127:1.15 pgoyette-compat-20190118:1.15 pgoyette-compat-1226:1.15 pgoyette-compat-1126:1.15 pgoyette-compat-1020:1.15 pgoyette-compat-0930:1.15 pgoyette-compat-0906:1.15 netbsd-7-2-RELEASE:1.15 pgoyette-compat-0728:1.15 netbsd-8-0-RELEASE:1.15 phil-wifi:1.15.0.66 phil-wifi-base:1.15 pgoyette-compat-0625:1.15 netbsd-8-0-RC2:1.15 pgoyette-compat-0521:1.15 pgoyette-compat-0502:1.15 pgoyette-compat-0422:1.15 netbsd-8-0-RC1:1.15 pgoyette-compat-0415:1.15 pgoyette-compat-0407:1.15 pgoyette-compat-0330:1.15 pgoyette-compat-0322:1.15 pgoyette-compat-0315:1.15 netbsd-7-1-2-RELEASE:1.15 pgoyette-compat:1.15.0.64 pgoyette-compat-base:1.15 netbsd-7-1-1-RELEASE:1.15 matt-nb8-mediatek:1.15.0.62 matt-nb8-mediatek-base:1.15 perseant-stdc-iso10646:1.15.0.60 perseant-stdc-iso10646-base:1.15 netbsd-8:1.15.0.58 netbsd-8-base:1.15 prg-localcount2-base3:1.15 prg-localcount2-base2:1.15 prg-localcount2-base1:1.15 prg-localcount2:1.15.0.56 prg-localcount2-base:1.15 pgoyette-localcount-20170426:1.15 bouyer-socketcan-base1:1.15 pgoyette-localcount-20170320:1.15 netbsd-7-1:1.15.0.54 netbsd-7-1-RELEASE:1.15 netbsd-7-1-RC2:1.15 netbsd-7-nhusb-base-20170116:1.15 bouyer-socketcan:1.15.0.52 bouyer-socketcan-base:1.15 pgoyette-localcount-20170107:1.15 netbsd-7-1-RC1:1.15 pgoyette-localcount-20161104:1.15 netbsd-7-0-2-RELEASE:1.15 localcount-20160914:1.15 netbsd-7-nhusb:1.15.0.50 netbsd-7-nhusb-base:1.15 pgoyette-localcount-20160806:1.15 pgoyette-localcount-20160726:1.15 pgoyette-localcount:1.15.0.48 pgoyette-localcount-base:1.15 netbsd-7-0-1-RELEASE:1.15 netbsd-7-0:1.15.0.46 netbsd-7-0-RELEASE:1.15 netbsd-7-0-RC3:1.15 netbsd-7-0-RC2:1.15 netbsd-7-0-RC1:1.15 netbsd-5-2-3-RELEASE:1.15 netbsd-5-1-5-RELEASE:1.15 netbsd-6-0-6-RELEASE:1.15 netbsd-6-1-5-RELEASE:1.15 netbsd-7:1.15.0.44 netbsd-7-base:1.15 yamt-pagecache-base9:1.15 yamt-pagecache-tag8:1.15 netbsd-6-1-4-RELEASE:1.15 netbsd-6-0-5-RELEASE:1.15 tls-earlyentropy:1.15.0.42 tls-earlyentropy-base:1.15 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.15 riastradh-drm2-base3:1.15 netbsd-6-1-3-RELEASE:1.15 netbsd-6-0-4-RELEASE:1.15 netbsd-5-2-2-RELEASE:1.15 netbsd-5-1-4-RELEASE:1.15 netbsd-6-1-2-RELEASE:1.15 netbsd-6-0-3-RELEASE:1.15 netbsd-5-2-1-RELEASE:1.15 netbsd-5-1-3-RELEASE:1.15 netbsd-6-1-1-RELEASE:1.15 riastradh-drm2-base2:1.15 riastradh-drm2-base1:1.15 riastradh-drm2:1.15.0.34 riastradh-drm2-base:1.15 netbsd-6-1:1.15.0.40 netbsd-6-0-2-RELEASE:1.15 netbsd-6-1-RELEASE:1.15 khorben-n900:1.15.0.38 netbsd-6-1-RC4:1.15 netbsd-6-1-RC3:1.15 agc-symver:1.15.0.36 agc-symver-base:1.15 netbsd-6-1-RC2:1.15 netbsd-6-1-RC1:1.15 yamt-pagecache-base8:1.15 netbsd-5-2:1.15.0.32 netbsd-6-0-1-RELEASE:1.15 yamt-pagecache-base7:1.15 netbsd-5-2-RELEASE:1.15 netbsd-5-2-RC1:1.15 matt-nb6-plus-nbase:1.15 yamt-pagecache-base6:1.15 netbsd-6-0:1.15.0.30 netbsd-6-0-RELEASE:1.15 netbsd-6-0-RC2:1.15 tls-maxphys:1.15.0.28 tls-maxphys-base:1.15 matt-nb6-plus:1.15.0.26 matt-nb6-plus-base:1.15 netbsd-6-0-RC1:1.15 yamt-pagecache-base5:1.15 yamt-pagecache-base4:1.15 netbsd-6:1.15.0.24 netbsd-6-base:1.15 netbsd-5-1-2-RELEASE:1.15 netbsd-5-1-1-RELEASE:1.15 yamt-pagecache-base3:1.15 yamt-pagecache-base2:1.15 yamt-pagecache:1.15.0.22 yamt-pagecache-base:1.15 cherry-xenmp:1.15.0.20 cherry-xenmp-base:1.15 bouyer-quota2-nbase:1.15 bouyer-quota2:1.15.0.18 bouyer-quota2-base:1.15 matt-mips64-premerge-20101231:1.15 matt-nb5-mips64-premerge-20101231:1.15 matt-nb5-pq3:1.15.0.16 matt-nb5-pq3-base:1.15 netbsd-5-1:1.15.0.14 netbsd-5-1-RELEASE:1.15 netbsd-5-1-RC4:1.15 matt-nb5-mips64-k15:1.15 netbsd-5-1-RC3:1.15 netbsd-5-1-RC2:1.15 netbsd-5-1-RC1:1.15 netbsd-5-0-2-RELEASE:1.15 matt-nb5-mips64-premerge-20091211:1.15 matt-premerge-20091211:1.15 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.15 matt-nb4-mips64-k7-u2a-k9b:1.15 matt-nb5-mips64-u1-k1-k5:1.15 matt-nb5-mips64:1.15.0.12 netbsd-5-0-1-RELEASE:1.15 jym-xensuspend-nbase:1.15 netbsd-5-0:1.15.0.10 netbsd-5-0-RELEASE:1.15 netbsd-5-0-RC4:1.15 netbsd-5-0-RC3:1.15 netbsd-5-0-RC2:1.15 jym-xensuspend:1.15.0.8 jym-xensuspend-base:1.15 netbsd-5-0-RC1:1.15 mjf-devfs2-base2:1.15 netbsd-5:1.15.0.6 netbsd-5-base:1.15 matt-mips64-base2:1.15 matt-mips64:1.14.0.14 netbsd-4-0-1-RELEASE:1.13.10.1.4.1 wrstuden-revivesa-base-3:1.15 wrstuden-revivesa-base-2:1.15 wrstuden-fixsa-newbase:1.13.10.2 wrstuden-revivesa-base-1:1.15 yamt-pf42-base4:1.15 yamt-pf42-base3:1.15 hpcarm-cleanup-nbase:1.15 yamt-pf42-baseX:1.15 yamt-pf42-base2:1.15 wrstuden-revivesa:1.15.0.4 wrstuden-revivesa-base:1.15 yamt-pf42:1.15.0.2 yamt-pf42-base:1.15 mjf-devfs2:1.14.0.12 mjf-devfs2-base:1.15 keiichi-mipv6:1.14.0.10 keiichi-mipv6-base:1.15 mjf-devfs:1.14.0.8 mjf-devfs-base:1.14 matt-armv6-nbase:1.15 matt-armv6-prevmlocking:1.14 wrstuden-fixsa-base-1:1.13.10.1 netbsd-4-0:1.13.10.1.0.4 netbsd-4-0-RELEASE:1.13.10.1 cube-autoconf:1.14.0.6 cube-autoconf-base:1.14 netbsd-4-0-RC5:1.13.10.1 netbsd-4-0-RC4:1.13.10.1 netbsd-4-0-RC3:1.13.10.1 netbsd-4-0-RC2:1.13.10.1 netbsd-4-0-RC1:1.13.10.1 matt-armv6:1.14.0.4 matt-armv6-base:1.14 matt-mips64-base:1.14 hpcarm-cleanup:1.14.0.2 hpcarm-cleanup-base:1.15 netbsd-3-1-1-RELEASE:1.13 netbsd-3-0-3-RELEASE:1.13 wrstuden-fixsa:1.13.10.1.0.2 wrstuden-fixsa-base:1.13.10.2 abandoned-netbsd-4-base:1.13 abandoned-netbsd-4:1.13.0.6 netbsd-3-1:1.13.0.8 netbsd-3-1-RELEASE:1.13 netbsd-3-0-2-RELEASE:1.13 netbsd-3-1-RC4:1.13 netbsd-3-1-RC3:1.13 netbsd-3-1-RC2:1.13 netbsd-3-1-RC1:1.13 netbsd-4:1.13.0.10 netbsd-4-base:1.13 netbsd-3-0-1-RELEASE:1.13 netbsd-3-0:1.13.0.4 netbsd-3-0-RELEASE:1.13 netbsd-3-0-RC6:1.13 netbsd-3-0-RC5:1.13 netbsd-3-0-RC4:1.13 netbsd-3-0-RC3:1.13 netbsd-3-0-RC2:1.13 netbsd-3-0-RC1:1.13 netbsd-2-0-3-RELEASE:1.10 netbsd-2-1:1.10.6.2.0.2 netbsd-2-1-RELEASE:1.10.6.2 netbsd-2-1-RC6:1.10.6.2 netbsd-2-1-RC5:1.10.6.2 netbsd-2-1-RC4:1.10.6.2 netbsd-2-1-RC3:1.10.6.2 netbsd-2-1-RC2:1.10.6.2 netbsd-2-1-RC1:1.10.6.2 netbsd-2-0-2-RELEASE:1.10 netbsd-3:1.13.0.2 netbsd-3-base:1.13 netbsd-2-0-1-RELEASE:1.10 netbsd-2:1.10.0.6 netbsd-2-base:1.10 netbsd-2-0-RELEASE:1.10 netbsd-2-0-RC5:1.10 netbsd-2-0-RC4:1.10 netbsd-2-0-RC3:1.10 netbsd-2-0-RC2:1.10 netbsd-2-0-RC1:1.10 netbsd-2-0:1.10.0.4 netbsd-2-0-base:1.10 netbsd-1-6-PATCH002-RELEASE:1.10 netbsd-1-6-PATCH002:1.10 netbsd-1-6-PATCH002-RC4:1.10 netbsd-1-6-PATCH002-RC3:1.10 netbsd-1-6-PATCH002-RC2:1.10 netbsd-1-6-PATCH002-RC1:1.10 netbsd-1-6-PATCH001:1.10 netbsd-1-6-PATCH001-RELEASE:1.10 netbsd-1-6-PATCH001-RC3:1.10 netbsd-1-6-PATCH001-RC2:1.10 netbsd-1-6-PATCH001-RC1:1.10 fvdl_fs64_base:1.10 netbsd-1-6-RELEASE:1.10 netbsd-1-6-RC3:1.10 netbsd-1-6-RC2:1.10 netbsd-1-6-RC1:1.10 netbsd-1-6:1.10.0.2 netbsd-1-6-base:1.10 netbsd-1-5-PATCH003:1.5.2.1 netbsd-1-5-PATCH002:1.5.2.1 netbsd-1-5-PATCH001:1.5.2.1 netbsd-1-5-RELEASE:1.5.2.1 netbsd-1-5-BETA2:1.5.2.1 netbsd-1-5-BETA:1.5.2.1 netbsd-1-5-ALPHA2:1.5 netbsd-1-5:1.5.0.2 netbsd-1-5-base:1.5 minoura-xpg4dl:1.3.0.2 minoura-xpg4dl-base:1.3 rc-d-2000-03-10:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.18 date 2021.03.01.23.02.30; author christos; state Exp; branches; next 1.17; commitid faKOb4tpbbzNYEJC; 1.17 date 2020.02.22.11.55.43; author roy; state Exp; branches; next 1.16; commitid c1ePNIiclYNvhFXB; 1.16 date 2020.02.22.11.52.45; author roy; state Exp; branches; next 1.15; commitid NrGbnJllVmTxgFXB; 1.15 date 2008.02.25.22.12.42; author tron; state Exp; branches; next 1.14; 1.14 date 2007.04.23.14.27.30; author tron; state Exp; branches 1.14.4.1 1.14.10.1 1.14.12.1; next 1.13; 1.13 date 2004.10.12.14.51.03; author lukem; state Exp; branches 1.13.2.1 1.13.10.1; next 1.12; 1.12 date 2004.10.12.13.44.45; author lukem; state Exp; branches; next 1.11; 1.11 date 2004.08.13.18.08.03; author mycroft; state Exp; branches; next 1.10; 1.10 date 2002.04.29.12.08.17; author lukem; state Exp; branches 1.10.6.1; next 1.9; 1.9 date 2002.03.22.04.33.58; author thorpej; state Exp; branches; next 1.8; 1.8 date 2001.06.17.01.05.40; author lukem; state Exp; branches; next 1.7; 1.7 date 2000.11.21.12.20.12; author veego; state Exp; branches; next 1.6; 1.6 date 2000.09.19.13.04.38; author lukem; state Exp; branches; next 1.5; 1.5 date 2000.06.02.22.54.11; author fvdl; state Exp; branches 1.5.2.1; next 1.4; 1.4 date 2000.05.29.06.53.03; author tron; state Exp; branches; next 1.3; 1.3 date 2000.05.13.08.45.06; author lukem; state Exp; branches 1.3.2.1; next 1.2; 1.2 date 2000.04.15.21.14.50; author tsarna; state Exp; branches; next 1.1; 1.1 date 2000.03.10.11.53.25; author lukem; state Exp; branches 1.1.1.1; next ; 1.14.4.1 date 2008.03.23.00.23.49; author matt; state Exp; branches; next ; 1.14.10.1 date 2008.03.24.07.14.42; author keiichi; state Exp; branches; next ; 1.14.12.1 date 2008.04.03.13.54.12; author mjf; state Exp; branches; next ; 1.13.2.1 date 2007.04.25.09.15.18; author ghen; state Exp; branches; next ; 1.13.10.1 date 2007.04.28.18.05.35; author bouyer; state Exp; branches 1.13.10.1.2.1 1.13.10.1.4.1; next 1.13.10.2; 1.13.10.2 date 2008.03.01.19.30.01; author bouyer; state Exp; branches; next ; 1.13.10.1.2.1 date 2008.06.03.20.47.00; author skrll; state Exp; branches; next ; 1.13.10.1.4.1 date 2008.03.01.19.30.37; author bouyer; state Exp; branches; next ; 1.10.6.1 date 2005.05.08.13.48.13; author riz; state Exp; branches; next 1.10.6.2; 1.10.6.2 date 2005.05.09.22.42.10; author riz; state Exp; branches; next ; 1.5.2.1 date 2000.10.02.01.09.49; author lukem; state Exp; branches; next ; 1.3.2.1 date 2000.06.23.15.46.02; author minoura; state Exp; branches; next ; 1.1.1.1 date 2000.03.10.11.53.25; author lukem; state Exp; branches; next ; desc @@ 1.18 log @require NETWORKING otherwise amd can come up before the network is up and it needs to be able to do DNS. @ text @#!/bin/sh # # $NetBSD: amd,v 1.17 2020/02/22 11:55:43 roy Exp $ # # PROVIDE: amd # REQUIRE: NETWORKING rpcbind mountall ypbind # BEFORE: DAEMON $_rc_subr_loaded . /etc/rc.subr name="amd" rcvar=$name command="/usr/sbin/${name}" reload_cmd="/usr/sbin/amq -f" extra_commands="reload" load_rc_config $name command_args='-p -a '$amd_dir' -F /etc/amd.conf >/var/run/amd.pid' required_files="/etc/amd.conf" required_dirs="$amd_dir" required_vars="rpcbind" load_rc_config_var rpcbind rpcbind run_rc_command "$1" @ 1.17 log @Revert unrelated changes to prior @ text @d3 1 a3 1 # $NetBSD: amd,v 1.16 2020/02/22 11:52:45 roy Exp $ d7 1 a7 1 # REQUIRE: rpcbind mountall ypbind @ 1.16 log @rc.d/network: improve wording of waiting for DAD to finish @ text @d3 1 a3 1 # $NetBSD: amd,v 1.15 2008/02/25 22:12:42 tron Exp $ d7 1 a7 1 # REQUIRE: rpcbind mountall a8 1 # AFTER: ypbind @ 1.15 log @Don't try to shutdown amd(8) gracefully. It seems to cause problems for more people than the old (also broken) behavior. This fixes PR bin/36506 and PR bin/38103. @ text @d3 1 a3 1 # $NetBSD: amd,v 1.14 2007/04/23 14:27:30 tron Exp $ d7 1 a7 1 # REQUIRE: rpcbind mountall ypbind d9 1 @ 1.14 log @Terminate amd(8) gracefully during system shutdown. This should avoid occasional problems with syncing or unmounting filesystems on machines which use the automounter. Tested successfully under NetBSD-i386 3.1_STABLE and 4.0_BETA2. @ text @d3 1 a3 1 # $NetBSD: amd,v 1.13 2004/10/12 14:51:03 lukem Exp $ a8 1 # KEYWORD: shutdown @ 1.14.12.1 log @Sync with HEAD. @ text @d3 1 a3 1 # $NetBSD$ d9 1 @ 1.14.10.1 log @sync with head. @ text @d3 1 a3 1 # $NetBSD: amd,v 1.15 2008/02/25 22:12:42 tron Exp $ d9 1 @ 1.14.4.1 log @sync with HEAD @ text @d3 1 a3 1 # amd,v 1.14 2007/04/23 14:27:30 tron Exp d9 1 @ 1.13 log @Use 'load_rc_config_var CMD VAR' to set VAR for "foreign" rc.conf(5) variables that may be set in /etc/rc.conf.d/CMD instead of /etc/rc.conf. Fixes PR 20768 from Pavel Cahyna. @ text @d3 1 a3 1 # $NetBSD: amd,v 1.12 2004/10/12 13:44:45 lukem Exp $ d9 1 @ 1.13.10.1 log @Pull up following revision(s) (requested by tron in ticket #590): etc/rc.d/amd: revision 1.14 Terminate amd(8) gracefully during system shutdown. This should avoid occasional problems with syncing or unmounting filesystems on machines which use the automounter. Tested successfully under NetBSD-i386 3.1_STABLE and 4.0_BETA2. @ text @d3 1 a3 1 # $NetBSD$ a8 1 # KEYWORD: shutdown @ 1.13.10.1.2.1 log @Sync with netbsd-4. @ text @d3 1 a3 1 # $NetBSD: amd,v 1.13.10.2 2008/03/01 19:30:01 bouyer Exp $ d9 1 @ 1.13.10.1.4.1 log @Pull up following revision(s) (requested by tron in ticket #1091): etc/rc.d/amd: revision 1.15 Don't try to shutdown amd(8) gracefully. It seems to cause problems for more people than the old (also broken) behavior. This fixes PR bin/36506 and PR bin/38103. @ text @d9 1 @ 1.13.10.2 log @Pull up following revision(s) (requested by tron in ticket #1091): etc/rc.d/amd: revision 1.15 Don't try to shutdown amd(8) gracefully. It seems to cause problems for more people than the old (also broken) behavior. This fixes PR bin/36506 and PR bin/38103. @ text @d9 1 @ 1.13.2.1 log @Pull up following revision(s) (requested by tron in ticket #1768): etc/rc.d/amd: revision 1.14 Terminate amd(8) gracefully during system shutdown. This should avoid occasional problems with syncing or unmounting filesystems on machines which use the automounter. Tested successfully under NetBSD-i386 3.1_STABLE and 4.0_BETA2. @ text @d3 1 a3 1 # $NetBSD$ a8 1 # KEYWORD: shutdown @ 1.12 log @Implement reload, using "amq -f". Suggested by Hauke Fath in PR 26589. @ text @d3 1 a3 1 # $NetBSD: amd,v 1.11 2004/08/13 18:08:03 mycroft Exp $ d25 2 @ 1.11 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: amd,v 1.10 2002/04/29 12:08:17 lukem Exp $ d15 3 @ 1.10 log @don't bother warning about obsolete $amd_master; postinstall now does this @ text @d3 1 a3 1 # $NetBSD: amd,v 1.9 2002/03/22 04:33:58 thorpej Exp $ d10 1 a10 1 . /etc/rc.subr @ 1.10.6.1 log @Pull up revision 1.12 (requested by lukem in ticket #1267): Implement reload, using "amq -f". Suggested by Hauke Fath in PR 26589. @ text @d3 1 a3 1 # $NetBSD: amd,v 1.10 2002/04/29 12:08:17 lukem Exp $ a14 3 reload_cmd="/usr/sbin/amq -f" extra_commands="reload" @ 1.10.6.2 log @Pull up revision 1.13 (requested by lukem in ticket #1269): Use 'load_rc_config_var CMD VAR' to set VAR for "foreign" rc.conf(5) variables that may be set in /etc/rc.conf.d/CMD instead of /etc/rc.conf. Fixes PR 20786 from Pavel Cahyna. @ text @d3 1 a3 1 # $NetBSD: amd,v 1.10.6.1 2005/05/08 13:48:13 riz Exp $ a24 2 load_rc_config_var rpcbind rpcbind @ 1.9 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: amd,v 1.8 2001/06/17 01:05:40 lukem Exp $ a14 1 start_precmd="amd_precmd" a20 8 amd_precmd() { if [ -n "$amd_master" ]; then warn "\$amd_master has been deprecated." return 1 fi } @ 1.8 log @Complain if $amd_master is set. This variable was used in 1.5 and prior releases, but has been ignored since an am-utils update six months ago. This fixes [misc/11971] submitted by Jun-ichiro itojun Hagino. (Note that $amd_flags is still supported, contrary to what the PR says). @ text @d3 1 a3 1 # $NetBSD: amd,v 1.7 2000/11/21 12:20:12 veego Exp $ d8 1 @ 1.7 log @The new am-utils use now /etc/amd.conf and no longer the $amd_master file. Despite that /etc/amd.conf is now the default configuration file, it needs to be defined if you supply other options when you start amd, so add it here. @ text @d3 1 a3 1 # $NetBSD: amd,v 1.6 2000/09/19 13:04:38 lukem Exp $ d14 1 d21 8 @ 1.6 log @- only perform the checkyesno on the variable named in $rcvar (rather than implicitly using $name if $rcvar isn't set), and always perform this check, even when using start_cmd (et al). this check is performed before the pidcmd is run, speeding up scripts that weren't going to be run anyway. this should speed up booting slow systems. - take advantage of the above and remove start_precmd="checkyesno foo" in scripts that use start_cmd. - explicitly set rcvar=foo in the rc.d/foo scripts which have an equivalent rc.conf entry - fix `rcvar' and `restart' when $rcvar isn't set. these above changes fix PR [bin/11027]. - when doing `force*', ignore the return value of *_precmd. this fixes PR [bin/10781]. - rename what sysdb provides from `databases' to `sysdb', to reflect the name of the script. - improve the comments in rc.subr @ text @d3 1 a3 1 # $NetBSD: amd,v 1.5 2000/06/02 22:54:11 fvdl Exp $ d16 2 a17 2 command_args='-p -a '$amd_dir' `sed s/#.*$// <'$amd_master'` >/var/run/amd.pid' required_files="$amd_master" @ 1.5 log @* Portmap is now called rpcbind. * Add IPv6 RPC entries to inetd.conf (commented out by default, as the others) * Add netconfig file, needed for TI-RPC code. @ text @d3 1 a3 1 # $NetBSD: amd,v 1.4 2000/05/29 06:53:03 tron Exp $ d12 1 @ 1.5.2.1 log @pull up rev 1.6 (approved by thorpej): - always use $rcvar to determine the name of the var to checkyesno - fix force* @ text @d3 1 a3 1 # $NetBSD: amd,v 1.6 2000/09/19 13:04:38 lukem Exp $ a11 1 rcvar=$name @ 1.4 log @Call "load_rc_config()" earlier so that configuration variables are read before command arguments are defined. Fixes PR bin/10220 by Ron Roskens. @ text @d3 1 a3 1 # $NetBSD: amd,v 1.3 2000/05/13 08:45:06 lukem Exp $ d7 1 a7 1 # REQUIRE: portmap mountall ypbind d18 1 a18 1 required_vars="portmap" @ 1.3 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: amd,v 1.2 2000/04/15 21:14:50 tsarna Exp $ d13 2 a19 1 load_rc_config $name @ 1.3.2.1 log @Sync w/ netbsd-1-5-base. @ text @d3 1 a3 1 # $NetBSD: amd,v 1.5 2000/06/02 22:54:11 fvdl Exp $ d7 1 a7 1 # REQUIRE: rpcbind mountall ypbind a12 2 load_rc_config $name d16 1 a16 1 required_vars="rpcbind" d18 1 @ 1.2 log @Death to nfsiod! It is replaced by kernel threads that do the same thing. The number of kernel threads used is set with the vfs.nfs.iothreads sysctl. @ text @d3 1 a3 1 # $NetBSD: amd,v 1.1.1.1 2000/03/10 11:53:25 lukem Exp $ a9 1 . /etc/rc.conf d18 1 @ 1.1 log @Initial revision @ text @d3 1 a3 1 # $NetBSD$ d7 1 a7 1 # REQUIRE: nfsiod portmap mountall ypbind @ 1.1.1.1 log @rc.d scripts derived from /etc/rc @ text @@