[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbsd-tech
Subject:    Re: delaying the start of ifstated in /etc/rc
From:       Rob Pierce <rob () 2keys ! ca>
Date:       2017-09-26 21:01:41
Message-ID: 20170926210141.GA96133 () sixonesee ! 2keys ! ca
[Download RAW message or body]

On Wed, Aug 30, 2017 at 08:30:52PM -0400, Rob Pierce wrote:
> Depending on the use case for ifstated, dependencies may exist with other
> daemons for performing interface checks and/or external tests. For example,
> one might use ifstated to check a dhcpd enabled interface, or connectivity to
> a vmd virtual machine.
> 
> Does anyone have any objections with delaying the start of ifstated?
> 
> Comments? Ok?

For the record, this is a bad diff; ifstated should start prior to disabling
the carp interlock. Starting ifstated after dhcpd might make sense for the
common use case, but maybe it is best for this to remain as is with local
modifications applied based on local use cases.

Rob

> Index: src/etc/rc
> ===================================================================
> RCS file: /cvs/src/etc/rc,v
> retrieving revision 1.517
> diff -u -p -r1.517 rc
> --- src/etc/rc	29 Aug 2017 16:56:13 -0000	1.517
> +++ src/etc/rc	31 Aug 2017 00:17:06 -0000
> @@ -558,7 +558,7 @@ echo 'preserving editor files.'; /usr/li
>  run_upgrade_script sysmerge
>  
>  echo -n 'starting network daemons:'
> -start_daemon ldomd sshd switchd snmpd ldpd ripd ospfd ospf6d bgpd ifstated
> +start_daemon ldomd sshd switchd snmpd ldpd ripd ospfd ospf6d bgpd
>  start_daemon relayd dhcpd dhcrelay mrouted dvmrpd radiusd eigrpd
>  
>  if ifconfig lo0 inet6 >/dev/null 2>&1; then
> @@ -569,7 +569,7 @@ fi
>  
>  start_daemon hostapd lpd smtpd slowcgi httpd ftpd
>  start_daemon ftpproxy ftpproxy6 tftpd tftpproxy identd inetd rarpd bootparamd
> -start_daemon rbootd mopd vmd spamd spamlogd sndiod
> +start_daemon rbootd mopd vmd spamd spamlogd sndiod ifstated
>  echo '.'
>  
>  # If rc.firsttime exists, run it just once, and make sure it is deleted.
> 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic