Subject: Re: Slackware and startup scripts
To: Lieven De Keyzer <lieven.dekeyzer@gmail.com>
From: Ross Cameron <ross.cameron@linuxpro.co.za>
List: pkgsrc-users
Date: 01/16/2007 16:43:15
------=_Part_49612_26132218.1168958595456
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
On 16/01/07, Lieven De Keyzer <lieven.dekeyzer@gmail.com> wrote:
>
> On 1/16/07, Ross Cameron <ross.cameron@linuxpro.co.za> wrote:
> > On 16/01/07, Lieven De Keyzer <lieven.dekeyzer@gmail.com> wrote:
> > > On
> >> http://users.piuha.net/martti/comp/slackware/slackware.html , I read:
> > >
> > > "It's good to have PKG_RCD_SCRIPTS and RCD_SCRIPTS_DIR settings in
> > > /etc/mk.conf or otherwise the startup scripts are left in
> > > /usr/pkg/share/examples/rc.d."
> > >
> > > with the following code:
> > >
> > > # Startup scripts for packages
> > > PKG_RCD_SCRIPTS=YES
> > > RCD_SCRIPTS_DIR=/usr/pkg/etc/rc.d
> > >
> > > Shouldn't that last line read "RCD_SCRIPTS_DIR=/etc/rc.d" ?
> > >
> >
> > Theoretically yes,... but the structure and includes of the
> NetBSD/pkgsrc
> > init scripts are TOTALLY different to the Slackware ones
> >
>
> I've read something like that, yes. But how would I make sure the
> startup scripts in /usr/pkg/etc/rc.d are effectively used at startup
> in Slackware?
>
As a shot in the dark you could write a bash script that looks for "chmod
+x" files in the "/usr/pkg/etc/rc.d" and execute them?
I dont have an example script though,.. sorry.
------=_Part_49612_26132218.1168958595456
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
On 16/01/07, <b class="gmail_sendername">Lieven De Keyzer</b> <<a href="mailto:lieven.dekeyzer@gmail.com">lieven.dekeyzer@gmail.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 1/16/07, Ross Cameron <<a href="mailto:ross.cameron@linuxpro.co.za">ross.cameron@linuxpro.co.za</a>> wrote:<br>> On 16/01/07, Lieven De Keyzer <<a href="mailto:lieven.dekeyzer@gmail.com">lieven.dekeyzer@gmail.com
</a>> wrote:<br>> > On<br>>> <a href="http://users.piuha.net/martti/comp/slackware/slackware.html">http://users.piuha.net/martti/comp/slackware/slackware.html</a> , I read:<br>> ><br>> > "It's good to have PKG_RCD_SCRIPTS and RCD_SCRIPTS_DIR settings in
<br>> > /etc/mk.conf or otherwise the startup scripts are left in<br>> > /usr/pkg/share/examples/rc.d."<br>> ><br>> > with the following code:<br>> ><br>> > # Startup scripts for packages
<br>> > PKG_RCD_SCRIPTS=YES<br>> > RCD_SCRIPTS_DIR=/usr/pkg/etc/rc.d<br>> ><br>> > Shouldn't that last line read "RCD_SCRIPTS_DIR=/etc/rc.d" ?<br>> ><br>><br>> Theoretically yes,... but the structure and includes of the NetBSD/pkgsrc
<br>> init scripts are TOTALLY different to the Slackware ones<br>><br><br>I've read something like that, yes. But how would I make sure the<br>startup scripts in /usr/pkg/etc/rc.d are effectively used at startup
<br>in Slackware?<br></blockquote></div><br>As a shot in the dark you could write a bash script that looks for "chmod +x" files in the "/usr/pkg/etc/rc.d" and execute them?<br><br><br>I dont have an example script though,.. sorry.
<br>
------=_Part_49612_26132218.1168958595456--