|
From: Heiko Z. <he...@zu...> - 2010-05-09 13:37:59
|
Does anybody else have an opinion on this? I'm hungover and it's a bit challenging today to make decisions... ;-) Heiko Quoting roy barnard <roy...@ya...>: > Heiko, > > I have looked at that and it's still not perfect. > I you need to stop and start a service like squid you might also > need to remember to stop and start the new services created from > skeleton. > > The default numbering of the rc3.d services makes it tricky to > insert the new services in the best places. > > It's better than my fudge (boot.local) but I still wonder if there > is any better option. > > If the run-parts idea is accepted I am happy to do the work building > all the patches. > > Roy > > --- On Fri, 7/5/10, Heiko Zuerker <he...@zu...> wrote: > >> From: Heiko Zuerker <he...@zu...> >> Subject: Re: [Devil-linux-develop] Setting up directories in /var >> during boot. >> To: dev...@li... >> Date: Friday, 7 May, 2010, 19:49 >> I think the simplest way would be to >> just copy the /etc/init.d/skeleton >> script and insert it into the runlevel wherever it fits >> best. >> >> Heiko >> >> > -----Original Message----- >> > From: roy barnard [mailto:roy...@ya...] >> > Sent: Thursday, May 06, 2010 3:52 PM >> > To: devil linux-develop >> > Subject: [Devil-linux-develop] Setting up directories >> in /var >> > during boot. >> > >> > Hi, >> > >> > Can anyone help me with setting up directories in /var >> during boot? >> > >> > I have configured DL-1.4RC3 as a Print Server using >> LPRNG. >> > To load the parallel port kernel driver I added >> "modprobe lp" to >> > the boot.local file, which works fine. >> > >> > I then configured the printcap file, again fine. >> > I needed to create the directory /var/spool/lpd/lp, >> which I tried >> > to do be putting "checkpc -f" in the boot.local file >> and let it >> > automatically do this for me. >> > >> > This failed because the boot.local is executed prior >> to the >> > hostname being set which "checkpc" needs. >> > (my work around to put mkdir,chown and chmods into >> boot.local) >> > >> > Will the same issues happen when running other >> programs which >> > expect new directories in /var ? >> > >> > Is there a rc.local file later in to boot sequence I >> have missed? >> > >> > I wonder if a better way forward would be to have each >> /etc/init.d >> > scripts call PRE/POST start-up scripts using >> run-parts. The same >> > idea could be used for shutdown allowing cleaning up >> when a service >> > shuts down. >> > >> > An other example for this would be if you need to >> download a proxy >> > whitelist prior to squid starting but after networking >> is up. >> > >> > Many thanks, >> > Roy Barnard >> > >> > >> > >> > >> > >> > >> > >> ------------------------------------------------------------------- >> > ----------- >> > >> > _______________________________________________ >> > Devil-linux-develop mailing list >> > Dev...@li... >> > https://lists.sourceforge.net/lists/listinfo/devil-linux-develop >> >> >> ------------------------------------------------------------------------------ >> >> _______________________________________________ >> Devil-linux-develop mailing list >> Dev...@li... >> https://lists.sourceforge.net/lists/listinfo/devil-linux-develop >> > > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > 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. |