Opened 22 years ago

Closed 22 years ago

Last modified 22 years ago

#280 closed defect (fixed)

lfs-bootscripts-1.6

Reported by: gerard@… Owned by: lfs-book@…
Priority: high Milestone:
Component: Book Version: CVS
Severity: normal Keywords:
Cc:

Description

Change History (14)

comment:1 by gerard@…, 22 years ago

dependson: 30
Owner: changed from lfs-book@… to gerard@…
Status: newassigned

comment:2 by gerard@…, 22 years ago

Resolution: fixed
Status: assignedclosed

See Changelog for changes

comment:3 by gerard@…, 22 years ago

Resolution: fixed
Status: closedreopened

Add "-o $PPID" again to the reloadproc functions (along with the code where -o %PPID is located)

comment:4 by gerard@…, 22 years ago

Check out this email: From: Matthias Benkmann <matthias@…> To: lfs-dev@… Subject: Re: slight bootscript functions problem Date: Sat, 9 Feb 2002 10:47:11 +0100

comment:5 by gerard@…, 22 years ago

On Fri, 8 Feb 2002 21:26:18 -0500 Gerard Beekmans <gerard@…> wrote:

In regards to -o $PPID, I'll put it back in .

You should put in a comment that explains the -o stuff. Something like this:

#do not kill current shell $$ (obvious reasons) and parent $PPID (in the #restart case this is the same script because restart invokes $0) BTW, As I pointed out already (Subject: issues with the functions script, Sep 15, 2001) the %PPID is redundant. It is the same as $$.

And you should really consider looking at the functions script from new-boot-0.2 (I've attached it for your convenience). My *_proc functions work with psmisc's pidof for instance. They don't (ab)use ps (the switch h is non-standard) to check if a process exists (that's what kill is for) and they have useful stuff like the following #only print pids of processes owned by caller if [ -O /proc/$pid ]; then echo $pid ; fi

which prevents user processes that happen to have the same name as a daemon from being shot down accidentally.

comment:6 by gerard@…, 22 years ago

Do a lot more testing on command outputs. A lot of cases that cause "An unforseen error took place" can be forseen.

Run a bunch of tests and have pretty much everything fail (missing programs, etc, etc) and try to catch the errors.

comment:7 by gerard@…, 22 years ago

make K70halt/K70reboot K99halt/K99reboot

Move K10network K20localnet up to one of the last things to be run (K80network K90localnet perhaps)

comment:8 by gerard@…, 22 years ago

restart don't always work (stems from $0 stop and $0 start not always doing what is expected). This apparenty hapens when the script name in /etc/init.d is the same as the name of a program in $PATH)

comment:9 by gerard@…, 22 years ago

Status: reopenedassigned

at least some issues have to be fixed for lfs-3.2 (like the restart peculiarity)

comment:10 by gerard@…, 22 years ago

All fixed, except for the part to catch more errors when certain files are missing for example. That'll be done after 3.2-rc2

comment:11 by gerard@…, 22 years ago

Owner: changed from gerard@… to lfs-book@…
Priority: normalhigh
Status: assignednew

comment:12 by gerard@…, 22 years ago

Summary: lfs-bootscripts-1.5lfs-bootscripts-1.6

comment:13 by gerard@…, 22 years ago

Resolution: fixed
Status: newclosed

Restarting new bug

comment:14 by gerard@…, 22 years ago

dependson: 30
Note: See TracTickets for help on using tickets.