Howdy, As has been discussed for a couple weeks now, I have MFC'ed to RELENG_6 the changes in /etc/rc* that bring new-style boot scripts from the local_startup directories (by default /usr/local/etc/rc.d and /usr/X11R6/etc/rc.d) into the base rcorder. For old style scripts (those that don't use rc.subr) there should be no changes. They will still run out of /etc/rc.d/localpkg. For those scripts that have been converted to use rc.subr, they will still be run the same way that they are now. The difference is that they will be added to the base rcorder list, and run in that spot instead of in localpkg. To get an idea of the current list (minus any local scripts) in RELENG_6, see http://people.freebsd.org/~dougb/rcorder-6.all In an ideal world, there should be no problems related to running the scripts in a different order. However, it is anticipated that there may be a brief period while scripts for whom the ordering is significant are adjusted. These are extremely easy changes to make, and do not otherwise affect the functionality of the packages in any way. If you run into one of these problems, please report it to the port's maintainer, and freebsd-port@freebsd.org ASAP. In almost all cases however the scripts will run close enough to their old position as not to make any difference, since currently localpkg is fairly late in the order. This change is being made so that port authors and users can take advantage of the greater control these features will give them. Some authors have already stepped forward and added new functionality to their ports that take advantage of these features. If anyone has questions about the changes, or what they offer you, feel free to ask on freebsd-rc@freebsd.org. You can also find more information in rc(8) on an updated system. Happy Holidays, Doug -- This .signature sanitized for your protection
Mark Linimon
2005-Dec-21 12:07 UTC
HEADS UP: MFC of local_startup changes to rc.d complete
On Wed, Dec 21, 2005 at 12:23:20AM -0800, Doug Barton wrote:> If you run into one of > these problems, please report it to the port's maintainer, and > freebsd-port@freebsd.org ASAP.ITYM freebsd-ports@freebsd.org. mcl
On Wed, 21 Dec 2005, Doug Barton wrote:> As has been discussed for a couple weeks now, I have MFC'ed to RELENG_6 > the changes in /etc/rc* that bring new-style boot scripts from the > local_startup directories (by default /usr/local/etc/rc.d and > /usr/X11R6/etc/rc.d) into the base rcorder...This seems to have broken ppp-user for me. Apparently the ppp arguments are being executed without the ppp command: + su -m vpn -c sh -c " -quiet -ddial vpn-tcp " -quiet: not found Otherwise, everything seems to be working fine. See a trace of `ppp-user start' below. -- Greg # /bin/sh -x /etc/rc.d/ppp-user start + . /etc/rc.subr + [ -z ] + _rc_subr_loaded=YES + SYSCTL=/sbin/sysctl + SYSCTL_N=/sbin/sysctl -n + CMD_OSTYPE=/sbin/sysctl -n kern.ostype + /sbin/sysctl -n kern.ostype + OSTYPE=FreeBSD + ID=/usr/bin/id + IDCMD=if [ -x /usr/bin/id ]; then /usr/bin/id -un; fi + SYSCTL_W=/sbin/sysctl + name=ppp + set_rcvar + [ -z ] + base_var=ppp + echo ppp_enable + rcvar=ppp_enable + start_precmd=ppp_precmd + start_postcmd=ppp_postcmd + load_rc_config ppp + _command=ppp + [ -z ppp ] + false + [ -r /etc/defaults/rc.conf ] + debug Sourcing /etc/defaults/rc.conf + . /etc/defaults/rc.conf + rc_debug=NO + rc_info=NO + rcshutdown_timeout=30 + early_late_divider=mountcritlocal + swapfile=NO + apm_enable=NO + apmd_enable=NO + apmd_flags+ devd_enable=YES + devd_flags+ kldxref_enable=NO + kldxref_clobber=NO + kldxref_module_path+ pccard_enable=NO + pccard_mem=DEFAULT + pccard_beep=2 + pccard_ifconfig=NO + pccardd_flags=-z + pccard_conf=/etc/defaults/pccard.conf + powerd_enable=NO + powerd_flags+ removable_route_flush=YES + tmpmfs=AUTO + tmpsize=20m + tmpmfs_flags=-S -M + varmfs=AUTO + varsize=32m + varmfs_flags=-S -M + populate_var=AUTO + local_startup=/usr/local/etc/rc.d /usr/X11R6/etc/rc.d + script_name_sep= + rc_conf_files=/etc/rc.conf /etc/rc.conf.local + gbde_autoattach_all=NO + gbde_devices=NO + gbde_attach_attempts=3 + gbde_lockdir=/etc + geli_devices+ geli_tries+ geli_default_flags+ geli_autodetach=YES + geli_swap_flags=-a aes -l 256 -s 4096 -d + root_rw_mount=YES + fsck_y_enable=NO + background_fsck=YES + background_fsck_delay=60 + netfs_types=nfs:NFS nfs4:NFS4 smbfs:SMB portalfs:PORTAL nwfs:NWFS + extra_netfs_types=NO + hostname+ nisdomainname=NO + dhclient_program=/sbin/dhclient + dhclient_flags+ background_dhclient=NO + firewall_enable=NO + firewall_script=/etc/rc.firewall + firewall_type=UNKNOWN + firewall_quiet=NO + firewall_logging=NO + firewall_flags+ ip_portrange_first=NO + ip_portrange_last=NO + ike_enable=NO + ike_program=/usr/local/sbin/isakmpd + ike_flags+ ipsec_enable=NO + ipsec_file=/etc/ipsec.conf + natd_program=/sbin/natd + natd_enable=NO + natd_interface+ natd_flags+ ipfilter_enable=NO + ipfilter_program=/sbin/ipf + ipfilter_rules=/etc/ipf.rules + ipfilter_flags+ ipnat_enable=NO + ipnat_program=/sbin/ipnat + ipnat_rules=/etc/ipnat.rules + ipnat_flags+ ipmon_enable=NO + ipmon_program=/sbin/ipmon + ipmon_flags=-Ds + ipfs_enable=NO + ipfs_program=/sbin/ipfs + ipfs_flags+ pf_enable=NO + pf_rules=/etc/pf.conf + pf_program=/sbin/pfctl + pf_flags+ pflog_enable=NO + pflog_logfile=/var/log/pflog + pflog_program=/sbin/pflogd + pflog_flags+ pfsync_enable=NO + pfsync_syncdev+ pfsync_ifconfig+ tcp_extensions=YES + log_in_vain=0 + tcp_keepalive=YES + tcp_drop_synfin=NO + icmp_drop_redirect=NO + icmp_log_redirect=NO + network_interfaces=auto + cloned_interfaces+ ifconfig_lo0=inet 127.0.0.1 + sppp_interfaces+ gif_interfaces=NO + ppp_enable=NO + ppp_program=/usr/sbin/ppp + ppp_mode=auto + ppp_nat=YES + ppp_profile=papchap + ppp_user=root + syslogd_enable=YES + syslogd_program=/usr/sbin/syslogd + syslogd_flags=-s + inetd_enable=NO + inetd_program=/usr/sbin/inetd + inetd_flags=-wW -C 60 + named_enable=NO + named_program=/usr/sbin/named + named_flags=-u bind + named_pidfile=/var/run/named/pid + named_chrootdir=/var/named + named_chroot_autoupdate=YES + named_symlink_enable=YES + kerberos5_server_enable=NO + kerberos5_server=/usr/libexec/kdc + kerberos5_server_flags+ kadmind5_server_enable=NO + kadmind5_server=/usr/libexec/kadmind + kpasswdd_server_enable=NO + kpasswdd_server=/usr/libexec/kpasswdd + rwhod_enable=NO + rwhod_flags+ rarpd_enable=NO + rarpd_flags+ bootparamd_enable=NO + bootparamd_flags+ pppoed_enable=NO + pppoed_provider=* + pppoed_flags=-P /var/run/pppoed.pid + pppoed_interface=fxp0 + sshd_enable=NO + sshd_program=/usr/sbin/sshd + sshd_flags+ amd_enable=NO + amd_flags=-a /.amd_mnt -l syslog /host /etc/amd.map /net /etc/amd.map + amd_map_program=NO + nfs_client_enable=NO + nfs_access_cache=2 + nfs_server_enable=NO + nfs_server_flags=-u -t -n 4 + mountd_enable=NO + mountd_flags=-r + weak_mountd_authentication=NO + nfs_reserved_port_only=NO + nfs_bufpackets+ rpc_lockd_enable=NO + rpc_statd_enable=NO + rpcbind_enable=NO + rpcbind_program=/usr/sbin/rpcbind + rpcbind_flags+ rpc_ypupdated_enable=NO + keyserv_enable=NO + keyserv_flags+ timed_enable=NO + timed_flags+ ntpdate_enable=NO + ntpdate_program=/usr/sbin/ntpdate + ntpdate_flags=-b + ntpd_enable=NO + ntpd_program=/usr/sbin/ntpd + ntpd_sync_on_start=NO + ntpd_flags=-p /var/run/ntpd.pid -f /var/db/ntpd.drift + nis_client_enable=NO + nis_client_flags+ nis_ypset_enable=NO + nis_ypset_flags+ nis_server_enable=NO + nis_server_flags+ nis_ypxfrd_enable=NO + nis_ypxfrd_flags+ nis_yppasswdd_enable=NO + nis_yppasswdd_flags+ bsnmpd_enable=NO + bsnmpd_flags+ defaultrouter=NO + static_routes+ natm_static_routes+ gateway_enable=NO + router_enable=NO + router=/sbin/routed + router_flags=-q + mrouted_enable=NO + mrouted_flags+ ipxgateway_enable=NO + ipxrouted_enable=NO + ipxrouted_flags+ arpproxy_all=NO + forward_sourceroute=NO + accept_sourceroute=NO + atm_enable=NO + atm_pvcs+ atm_arps+ isdn_enable=NO + isdn_fsdev=NO + isdn_flags=-dn -d0x1f9 + isdn_ttype=cons25 + isdn_screenflags=NO + isdn_trace=NO + isdn_traceflags=-f /var/tmp/isdntrace0 + hcsecd_enable=NO + hcsecd_config=/etc/bluetooth/hcsecd.conf + sdpd_enable=NO + sdpd_control=/var/run/sdp + sdpd_groupname=nobody + sdpd_username=nobody + icmp_bmcastecho=NO + ipv6_enable=NO + ipv6_network_interfaces=auto + ipv6_defaultrouter=NO + ipv6_static_routes+ ipv6_gateway_enable=NO + ipv6_router_enable=NO + ipv6_router=/usr/sbin/route6d + ipv6_router_flags+ ipv6_default_interface=NO + rtsol_flags+ rtadvd_enable=NO + rtadvd_interfaces+ mroute6d_enable=NO + mroute6d_program=/usr/local/sbin/pim6dd + mroute6d_flags+ stf_interface_ipv4addr+ stf_interface_ipv4plen=0 + stf_interface_ipv6_ifid=0:0:0:1 + stf_interface_ipv6_slaid=0000 + ipv6_faith_prefix=NO + ipv6_ipv4mapping=NO + ipv6_firewall_enable=NO + ipv6_firewall_script=/etc/rc.firewall6 + ipv6_firewall_type=UNKNOWN + ipv6_firewall_quiet=NO + ipv6_firewall_logging=NO + ipv6_firewall_flags+ ipv6_ipfilter_rules=/etc/ipf6.rules + ip6addrctl_enable=NO + ip6addrctl_verbose=NO + keyboard+ keymap=NO + keyrate=NO + keybell=NO + keychange=NO + cursor=NO + scrnmap=NO + font8x16=NO + font8x14=NO + font8x8=NO + blanktime=300 + saver=NO + moused_nondefault_enable=YES + moused_enable=NO + moused_type=auto + moused_port=/dev/psm0 + moused_flags+ mousechar_start=NO + allscreens_flags+ allscreens_kbdflags+ pcvt_verbose=NO + pcvt_keymap=NO + pcvt_keydel=NO + pcvt_keyrate=NO + pcvt_keyrepeat=NO + pcvt_force24=NO + pcvt_hpext=NO + pcvt_lines=NO + pcvt_blanktime=NO + pcvt_cursorh=NO + pcvt_cursorl=NO + pcvt_monohigh=NO + mta_start_script=/etc/rc.sendmail + sendmail_enable=NO + sendmail_pidfile=/var/run/sendmail.pid + sendmail_procname=/usr/sbin/sendmail + sendmail_flags=-L sm-mta -bd -q30m + sendmail_submit_enable=YES + sendmail_submit_flags=-L sm-mta -bd -q30m -ODaemonPortOptions=Addr=localhost + sendmail_outbound_enable=YES + sendmail_outbound_flags=-L sm-queue -q30m + sendmail_msp_queue_enable=YES + sendmail_msp_queue_flags=-L sm-msp-queue -Ac -q30m + cron_enable=YES + cron_program=/usr/sbin/cron + cron_dst=YES + cron_flags+ lpd_enable=NO + lpd_program=/usr/sbin/lpd + lpd_flags+ chkprintcap_enable=NO + chkprintcap_flags=-d + usbd_enable=NO + usbd_flags+ dumpdev=AUTO + dumpdir=/var/crash + savecore_flags+ enable_quotas=NO + check_quotas=YES + accounting_enable=NO + ibcs2_enable=NO + ibcs2_loaders=coff + sysvipc_enable=NO + linux_enable=NO + svr4_enable=NO + osf1_enable=NO + clear_tmp_enable=NO + ldconfig_insecure=NO + ldconfig_paths=/usr/lib/compat /usr/X11R6/lib /usr/local/lib /usr/local/lib/compat/pkg + ldconfig_paths_aout=/usr/lib/compat/aout /usr/X11R6/lib/aout /usr/local/lib/aout + kern_securelevel_enable=NO + kern_securelevel=-1 + update_motd=YES + unaligned_print=YES + entropy_file=/entropy + entropy_dir=/var/db/entropy + entropy_save_sz=2048 + entropy_save_num=8 + harvest_interrupt=YES + harvest_ethernet=YES + harvest_p_to_p=YES + dmesg_enable=YES + watchdogd_enable=NO + devfs_rulesets=/etc/defaults/devfs.rules /etc/devfs.rules + devfs_system_ruleset+ devfs_set_rulesets+ performance_cx_lowest=HIGH + performance_cpu_freq=NONE + economy_cx_lowest=HIGH + economy_cpu_freq=NONE + virecover_enable=YES + ugidfw_enable=NO + bsdextended_script=/etc/rc.bsdextended + newsyslog_enable=YES + newsyslog_flags=-CN + jail_enable=NO + jail_list+ jail_set_hostname_allow=YES + jail_socket_unixiproute_only=YES + jail_sysvipc_allow=NO + [ -z ] + source_rc_confs_defined=yes + source_rc_confs + local i sourced_files + sourced_files=:/etc/rc.conf: + [ -r /etc/rc.conf ] + . /etc/rc.conf + hostname=HHH.HHH.HHH.HHH + ifconfig_bge0=inet NNN.NNN.NNN.NNN/26 polling + defaultrouter=NNN.NNN.NNN.NNN + gateway_enable=YES + ppp_enable=YES + ppp_mode=ddial + ppp_nat=NO + ppp_profile=vpn-tcp + ppp_user=vpn + dumpdev=AUTO + keyrate=fast + saver=green + moused_enable=YES + moused_flags=-l 1 -r high + smartd_enable=YES + inetd_enable=YES + inetd_flags=-l + named_enable=YES + ntpd_enable=YES + ntpd_sync_on_start=YES + nfs_client_enable=YES + rpcbind_enable=NO + rpc_lockd_enable=NO + rpc_statd_enable=NO + sshd_enable=YES + usbd_enable=YES + lpd_enable=NO + lpd_flags=-ls + firewall_enable=NO + firewall_type=client + sourced_files=:/etc/rc.conf::/etc/rc.conf.local: + [ -r /etc/rc.conf.local ] + _rc_conf_loaded=true + [ -f /etc/rc.conf.d/ppp ] + [ -n ] + [ -n ] + [ -n ] + [ -n ] + [ -n ] + [ -n ] + [ -n ] + [ -n ] + [ -n ] + run_rc_command start + _return=0 + rc_arg=start + [ -z ppp ] + shift 1 + rc_extra_args+ _rc_prefix+ eval _overide_command=$ppp_program + _overide_command=/usr/sbin/ppp + command+ _keywords=start stop restart rcvar + rc_pid+ _pidcmd+ _procname+ [ -n ] + [ -z start ] + [ -n ] + eval rc_flags=$ppp_flags + rc_flags+ eval _chdir=$ppp_chdir _chroot=$ppp_chroot _nice=$ppp_nice _user=$ppp_user _group=$ppp_group _groups=$ppp_groups + _chdir= _chroot= _nice= _user=vpn _group= _groups+ [ -n vpn ] + eval if [ -x /usr/bin/id ]; then /usr/bin/id -un; fi + [ -x /usr/bin/id ] + /usr/bin/id -un + [ vpn = root ] + [ -n ppp_enable -a start != rcvar ] + checkyesno ppp_enable + eval _value=$ppp_enable + _value=YES + debug checkyesno: ppp_enable is set to YES. + return 0 + eval + [ start != start ] + eval _cmd=$start_cmd _precmd=$start_precmd _postcmd=$start_postcmd + _cmd= _precmd=ppp_precmd _postcmd=ppp_postcmd + [ -n ] + [ -z -a -n ] + [ ! -x ] + [ -n ppp_precmd ] + debug run_rc_command: evaluating ppp_precmd(). + eval ppp_precmd + ppp_precmd + [ ddial != ddial -a ddial != direct -a ddial != dedicated -a ddial != background ] + rc_flags= -quiet -ddial + rc_flags= -quiet -ddial vpn-tcp + _return=0 + [ 0 -ne 0 ] + echo Starting ppp. Starting ppp. + [ -n ] + _doit= -quiet -ddial vpn-tcp + [ -n vpn ] + _doit=su -m vpn -c 'sh -c " -quiet -ddial vpn-tcp "' + debug run_rc_command: _doit: su -m vpn -c 'sh -c " -quiet -ddial vpn-tcp "' + eval su -m vpn -c 'sh -c " -quiet -ddial vpn-tcp "' + su -m vpn -c sh -c " -quiet -ddial vpn-tcp " -quiet: not found + _return=127 + [ 127 -ne 0 ] + [ -z ] + return 1
Jose M Rodriguez
2005-Dec-23 06:18 UTC
HEADS UP: MFC of local_startup changes to rc.d complete
El Mi?rcoles, 21 de Diciembre de 2005 09:23, Doug Barton escribi?:> Howdy, > > As has been discussed for a couple weeks now, I have MFC'ed to > RELENG_6 the changes in /etc/rc* that bring new-style boot scripts > from the local_startup directories (by default /usr/local/etc/rc.d > and /usr/X11R6/etc/rc.d) into the base rcorder. For old style scripts > (those that don't use rc.subr) there should be no changes. They will > still run out of /etc/rc.d/localpkg. For those scripts that have been > converted to use rc.subr, they will still be run the same way that > they are now. The difference is that they will be added to the base > rcorder list, and run in that spot instead of in localpkg. To get an > idea of the current list (minus any local scripts) in RELENG_6, see > http://people.freebsd.org/~dougb/rcorder-6.all > > In an ideal world, there should be no problems related to running the > scripts in a different order. However, it is anticipated that there > may be a brief period while scripts for whom the ordering is > significant are adjusted. These are extremely easy changes to make, > and do not otherwise affect the functionality of the packages in any > way. If you run into one of these problems, please report it to the > port's maintainer, and freebsd-port@freebsd.org ASAP. In almost all > cases however the scripts will run close enough to their old position > as not to make any difference, since currently localpkg is fairly > late in the order. > > This change is being made so that port authors and users can take > advantage of the greater control these features will give them. Some > authors have already stepped forward and added new functionality to > their ports that take advantage of these features. If anyone has > questions about the changes, or what they offer you, feel free to ask > on freebsd-rc@freebsd.org. You can also find more information in > rc(8) on an updated system. > > > Happy Holidays, > > Doug >I'm not sure this is the way to go, but ... Can someone put a document on what is the desired model? I think we have too much little pieces of disperse notes about this. Also, some working notes about ports and RELENG_4/RELENG_5 src issues will be of interest. Hope this can be tweak in time for 6.1 (Jan). -- josemi -- This mail was scanned by AntiVir Milter. This product is licensed for non-commercial use. See www.antivir.de for details.
Aristedes Maniatis
2005-Dec-27 00:26 UTC
HEADS UP: MFC of local_startup changes to rc.d complete
On 21/12/2005, at 7:23 PM, Doug Barton wrote:> As has been discussed for a couple weeks now, I have MFC'ed to > RELENG_6 the changes in /etc/rc* that bring new-style boot scripts > from the local_startup directories (by default /usr/local/etc/rc.d > and /usr/X11R6/etc/rc.d) into the base rcorder.How does this correlate with the planned implementation of launchd in FreeBSD? http://wikitest.freebsd.org/moin.cgi/launchd Perhaps it is too early for you to say, but it would seem that launchd is a much more sophisticated system that would bring a whole range of benefits to FreeBSD. Is work still progressing on that? Will these changes to /etc/rc allow for a migration path? Cheers Ari Maniatis --------------------------> ish http://www.ish.com.au Level 1, 30 Wilson Street Newtown 2042 Australia phone +61 2 9550 5001 fax +61 2 9550 4001 PGP fingerprint 08 57 20 4B 80 69 59 E2 A9 BF 2D 48 C2 20 0C C8