rc script priority limitation

Bruce Dubbs bdubbs at swbell.net
Tue Jul 31 18:39:23 PDT 2001


Gerard Beekmans wrote:

>On Tue, Jul 31, 2001 at 12:51:38PM -0500, J. Jones wrote:
>
>>#!/bin/sh
>>
>>string="/etc/rc.d/S88888888888888888888888888885fooooooo"
>>eval `basename $string | sed \
>>     's/^[S|K]\(.*[0-9]\)\(.*\)/stop=K\1\2; previous_start=S\1\2/'`
>>
>>echo $stop
>>echo $previous_start
>>
>
>my previous email got lost or is stuck at some smtp server, let's try it
>again
>
>i'd like to see proper sorting so if we have:
>S50
>S100
>S5000
>
>they are executed in that order and not as S100, S50, S5000
>

I don't think this is a good idea.  If this is done, /bin/ls will list 
the files in a different order from the execution order.  This will 
cause confusion.  Just stick to 3 digits.

  -- Bruce


-- 
Unsubscribe: send email to lfs-discuss-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message



More information about the lfs-dev mailing list