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> &lt;<a href="mailto:lieven.dekeyzer@gmail.com">lieven.dekeyzer@gmail.com</a>&gt; 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 &lt;<a href="mailto:ross.cameron@linuxpro.co.za">ross.cameron@linuxpro.co.za</a>&gt; wrote:<br>&gt; On 16/01/07, Lieven De Keyzer &lt;<a href="mailto:lieven.dekeyzer@gmail.com">lieven.dekeyzer@gmail.com
</a>&gt; wrote:<br>&gt; &gt; On<br>&gt;&gt; <a href="http://users.piuha.net/martti/comp/slackware/slackware.html">http://users.piuha.net/martti/comp/slackware/slackware.html</a> , I read:<br>&gt; &gt;<br>&gt; &gt; &quot;It&#39;s good to have PKG_RCD_SCRIPTS and RCD_SCRIPTS_DIR settings in
<br>&gt; &gt; /etc/mk.conf or otherwise the startup scripts are left in<br>&gt; &gt; /usr/pkg/share/examples/rc.d.&quot;<br>&gt; &gt;<br>&gt; &gt; with the following code:<br>&gt; &gt;<br>&gt; &gt; # Startup scripts for packages
<br>&gt; &gt; PKG_RCD_SCRIPTS=YES<br>&gt; &gt; RCD_SCRIPTS_DIR=/usr/pkg/etc/rc.d<br>&gt; &gt;<br>&gt; &gt; Shouldn&#39;t that last line read &quot;RCD_SCRIPTS_DIR=/etc/rc.d&quot; ?<br>&gt; &gt;<br>&gt;<br>&gt; Theoretically yes,... but the structure and includes of the NetBSD/pkgsrc
<br>&gt; init scripts are TOTALLY different to the Slackware ones<br>&gt;<br><br>I&#39;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 &quot;chmod +x&quot; files in the &quot;/usr/pkg/etc/rc.d&quot; and execute them?<br><br><br>I dont have an example script though,.. sorry.
<br>

------=_Part_49612_26132218.1168958595456--