|
From: Heiko Z. <he...@zu...> - 2009-06-04 11:46:04
|
Hey, Wouldn't it be better if the network init script checks if the specific pid from /var/run/dhcpcd-ethX.pid is active and if not, just delete the file? Heiko Quoting Andrzej Odyniec <an...@ma...>: > Hi, > > I detected non typical problem. Source of it is in two assumptions: > > 1. one ethernet interface is configured as DHCP client > 2. on /var directory is mounted permanent storage > > After sudden stop of system (i.e. power-off) automatic correct restart (i.e. > power-restore) is impossible, beacause of existing /var/run/dhcpcd-ethX.pid > --- /etc/init.d/network script cannot start dhcpd client for that interface, > so interface will not be configured correctly. > > Ofcourse, typically we are not using DHCP configured interfaces in > router, but > some small ISP prefer sometime this methods of configuration. > > And typically /var is on ramdisk, so on restart /var/run is again without old > pids. But sometime /var is located on permanent storage for store logs and > some configurations (i.e. iptraf) and historic rrd data (i.e. ntop). > > Point, where I can clean /var/run catalog is after /etc/init.d/mountfs script > (if I automount /var filesystem from /etc/fstab). But in this script there is > no end hook (as in some other scripts). > > So there is possibility to mount /var not from /etc/fstab but from earlier > hook and clean /var/run immediatelly. But I think, this is not elegant > solution --- typically automatically mounted filesystems are declared in > /etc/fstab and in this file anyone search mountings. > > So there is a question: > > Is there other possibility to safely clean /var/run directory after > mount from > fstab but before starting any services? Or maybe mountfs script need > modification in calling his own hook at end? > > Regards > > Andrzej Odyniec > > > ------------------------------------------------------------------------------ > OpenSolaris 2009.06 is a cutting edge operating system for enterprises > looking to deploy the next generation of Solaris that includes the latest > innovations from Sun and the OpenSource community. Download a copy and > enjoy capabilities such as Networking, Storage and Virtualization. > Go to: http://p.sf.net/sfu/opensolaris-get > _______________________________________________ > Devil-linux-develop mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/devil-linux-develop > -- Regards Heiko Zuerker http://www.devil-linux.org ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. |