| Summary: | rc scripts excution order | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Zhen Lin <lowzl> |
| Component: | [OLD] Core system | Assignee: | Martin Schlemmer (RETIRED) <azarah> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | vapier |
| Priority: | High | ||
| Version: | 1.4_rc1 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
rc script
rc script that is misbehaving /sbin/runscript.sh |
||
|
Description
Zhen Lin
2002-12-29 01:41:19 UTC
If they have a before or after, that is reversed. If there are no relationship, I do not see the point. Send me a tarball of your /mnt/.init.d/ The 'noip' and 'net.*' services .. in what runlevel ? If all in default, please go out of X for instance, and run: # rc boot Then send me the output. Also send me a second tarball of /mnt/.init.d/ when in the boot runlevel. To restore default runlevel, run: # rc default Thanks. Ok, two things: 1) The depend() stuff in noip is wrong. All the needs should be on one line. 2) Please send me the noip script as well, thanks. Created attachment 6856 [details]
rc script
This is the net script in question
Created attachment 6857 [details]
rc script that is misbehaving
This is the rc script that is misbehaving
Ok, I think I know what the problem is .. looks to be related to my last RC_NET_STRICT_CHECKING related changes. Will fix and send you a test version in the next day or two. Created attachment 6915 [details]
/sbin/runscript.sh
Copy this to /sbin, and let me know if it fixes the problem, thanks.
Thanks, but it seems to have cleared up by itself suddenly, although the diffs are interesting to look at... Perhaps I should shange net.adsl to net.ppp0. Oh, what are these changes for?
597c597
< cp ${svcdir}/started/* ${svcdir}/snapshot/
---
> cp -a ${svcdir}/started/* ${svcdir}/snapshot/
601c601
< if [ -n "$(egrep 'restart()' /etc/init.d/${myservice})" ]
---
> if [ -n "$(egrep '^[[:space:]]*restart[[:space:]]*()'
/etc/init.d/${myservice})" ]
I can understand cp -a, why wasn't it there in the first place? And what about
the other change?
Err, forgot the -a first time =) The grep changes is for the new bind that trigger that wrongly. Anyhow, It was really a bug in the scripts, they should not expect net\..*[[:digit:]], but work with any net.* ... This should be fixed in latest unstable baselayouts. Reopen and let me know what/how it is breaking if not. The problem seems to have been fixed... But some programs that depend on net are still stopping after my ADSL has shut down. Squid, for instance. net I believe is still being shut down in two stages... I'll have to check. I'll test the new baselayout... Which one is it? Sorry, silly mistake. It's working fine now. |