Skip to Content.
Sympa Menu

sm-sorcery - Re: [SM-Sorcery] sorcery problem

sm-sorcery AT lists.ibiblio.org

Subject: Discussion of Sorcery related topics

List archive

Chronological Thread  
  • From: Arwed von Merkatz <v.merkatz AT gmx.net>
  • To: sm-sorcery AT lists.ibiblio.org
  • Subject: Re: [SM-Sorcery] sorcery problem
  • Date: Sat, 24 Jan 2004 14:27:47 +0100

On Sat, Jan 24, 2004 at 02:08:09PM +0100, Arwed von Merkatz wrote:
> On Sat, Jan 24, 2004 at 01:31:55PM +0100, Treeve Jelbert wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > using latest devel sorcery
> >
> > if I cast several spells and one has an init.d script, it trys to install
> > an
> > init script for the {last ?} spell cast
> > The init script was installed for the relevant spell.
> >
> > I noticed this before, but could not be sure at that time.
> >
> > It looks as the init script logic needs to clear a flag somewhere.
> >
> >
> > grep: /home/treeve/smgl/test/net/ppp/init.d/modutils: No such file or
> > directory
> > /tmp/casting.7118: eval: line 1: syntax error near unexpected token `;'
> > /tmp/casting.7118: eval: line 1: `( ; echo $RUNLEVEL )'
> > Init script modutils doesn't contain good RUNLEVEL variable...
> > Creating /var/log/sorcery/compile/ppp-2.4.2.bz2
> > Finished processing install requests.
> >
> > Spells installed successfully:
> > - ------------------------------
> > module-init-tools libpcap ppp
>
> For some reason the init script ends up in all $SPELL_CONFIG files of
> the queue, i'll have a look at it.

The fix is attached, use_initd only initialized the INITDSCRIPTS and
INITDSCRIPTS_ENABLED variables to "" if the spell contains a init.d
directory.

--
Arwed v. Merkatz
Grimoire Guru for video
Grimoire Guru for xfce
Sourcemage GNU/Linux
http://www.sourcemage.org
--- sorcery/usr/sbin/cast 2004-01-19 17:06:07.000000000 +0100
+++ /usr/sbin/cast 2004-01-24 14:22:11.000000000 +0100
@@ -203,11 +203,12 @@

debug "cast" "In use_initd()"

+ INITDSCRIPTS=""
+ INITDSCRIPTS_DISABLED=""
+
if [ -d $SCRIPT_DIRECTORY/init.d ] ; then
debug "cast" "use_initd: found an init.d directory - processing"

- INITDSCRIPTS=""
- INITDSCRIPTS_DISABLED=""
. $SPELL_CONFIG

local ALL_INITSCRIPTS=`ls $SCRIPT_DIRECTORY/init.d/ | grep -v
'\.conf$'`



Archive powered by MHonArc 2.6.24.

Top of Page