|
From: Heiko Z. <he...@zu...> - 2010-05-08 13:56:11
|
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 |