SCIENTIFIC-LINUX-DEVEL Archives

September 2006

SCIENTIFIC-LINUX-DEVEL@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Urs Beyerle <[log in to unmask]>
Reply To:
Urs Beyerle <[log in to unmask]>
Date:
Sat, 16 Sep 2006 01:10:12 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (134 lines)
Troy Dawson wrote:
> I named it
> SL_firefox_parentlock_fix
> Since most people will be looking for a firefox.
>
that's fine.

> There is one problem, in that it doesn't work.
> It's not that the script doesn't work, it's that it never get's run. 
> Am I missing something?
>
> It goes in /usr/lib/firefox-1.5.0.5/init.d/ (or whichever program), it
> has a 755 permissions.  I gave it the same name you did, S91parentlock.
>
In my case its definitely running with firefox-1.5.0.5 and
thunderbird-1.5.0.5.
I can see it with strace -f (see below)

However, it is not running with seamonkey-1.0.3!!! I was not aware of
this behavior.

It's too late for me that this would make any sense.
Same README file, but different behavior?
/usr/lib/mozilla-seamonkey-1.0.3/init.d/README
/usr/lib/firefox-1.5.0.5/init.d/README


For firefox, I have
# ll /usr/lib/firefox-1.5.0.5/init.d/S01parentlock
-rwxr-xr-x    1 root     root          241 Aug 21 09:59
/usr/lib/firefox-1.5.0.5/init.d/S01parentlock

Are you run firefox 1.5.0.5?

For testing I do "date > tmp/S01parentlock" at the end of S01parentlock

# strace -f -o/tmp/firefox firefox
....
4766  open("/home/l_beyerle/.mozilla/firefox/init.d/",
O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIREC
TORY) = -1 ENOENT (No such file or directory)
4766  rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
4766  access("/usr/lib/firefox-1.5.0.5/init.d/S01parentlock", X_OK) = 0
4766  rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
4766  rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
4766  _llseek(255, -265, [4982], SEEK_CUR) = 0
4766  clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr
=0xb7f39708) = 4777
4766  rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
4766  rt_sigprocmask(SIG_BLOCK, [CHLD],  <unfinished ...>
4777  close(255 <unfinished ...>
....
4777  execve("/usr/lib/firefox-1.5.0.5/init.d/S01parentlock",
["/usr/lib/firefox-1.5.0.5/init.
d/"..., "start"], [/* 62 vars */]) = 0
4777  uname({sys="Linux", node="pc5708", ...}) = 0
4777  brk(0)                            = 0x80e3000
4777  access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
4777  open("/usr/lib/firefox-1.5.0.5/tls/i686/sse2/libtermcap.so.2",
O_RDONLY) = -1 ENOENT (No
 such file or directory)
.....
4777  open("/usr/lib/firefox-1.5.0.5/init.d/S01parentlock",
O_RDONLY|O_LARGEFILE) = 3
4777  ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf8460f8) = -1 ENOTTY
(Inappropriate ioctl for
 device)
4777  _llseek(3, 0, [0], SEEK_CUR)      = 0
4777  read(3, "#!/bin/sh\n#\n# removes .parentloc"..., 80) = 80
4777  _llseek(3, 0, [0], SEEK_SET)      = 0
4777  getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
....
4777  rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
4777  read(255, "\ndate >> /tmp/S01parentlock\n", 269) = 28
4777  rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
4777  stat64(".", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
....
4781  open("/tmp/S01parentlock", O_WRONLY|O_APPEND|O_CREAT|O_LARGEFILE,
0666) = 3
4781  dup2(3, 1)                        = 1
4781  close(3)                          = 0
4781  execve("/bin/date", ["date"], [/* 62 vars */]) = 0
4781  uname({sys="Linux", node="pc5708", ...}) = 0
4781  brk(0)                            = 0x8053000
...

Urs


> But, my first indication was that I couldn't open thunderbird.  I
> tried putting comments in the script, and from what I can tell ... it
> is never run.
>
> Troy
>
> Urs Beyerle wrote:
>> Hi Troy
>>
>> I'm not at all good in finding names ;-)
>>
>> Indeed, mozilla is somehow confusing, since mozilla is not really
>> installed. What's about
>>
>> SL_afs_parentlock_fix
>>
>> and put the keywords firefox, thunderbird and seamonkey in the
>> description of the rpm.
>>
>> Is this really better than SL_mozilla_afs_user? - I don't know.
>>
>> Urs
>>  
>>
>>
>> Troy Dawson wrote:
>>> Thanks Urs, it looks like that works pretty good.
>>> Now for the hardest part ... figuring out a name.
>>> I'd like to put it all into one SL rpm, and just have the triggers be
>>> off the various packages.
>>>
>>> I was thinking of calling it
>>>
>>> SL_mozilla_afs_user
>>>
>>> But I'm thinking the mozilla name might throw people off.  I thought
>>> of mozilla because all of these are mozilla based.
>>>
>>> Troy
>>>
>
>

ATOM RSS1 RSS2