Opened 22 years ago

Closed 22 years ago

Last modified 22 years ago

#324 closed defect (fixed)

lfs-bootscripts-1.9

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

Description

Use variables in the daemon start scripts, like:

source /etc/sysconfig/rc source $rc_functions

NAME="" #name of the service/application PREFIX="" #path to the application APP="" #the application OPTIONS="" #parameters

case "$1" in

start)

echo "Starting $NAME..." loadproc $PREFIX/$APP $OPTIONS ;;

and so on

Change History (6)

comment:1 by gerard@…, 22 years ago

dependson: 30

comment:2 by gerard@…, 22 years ago

Hiya,

I'm in the process of rewriting some of the scripts and I found that if a user calls the killproc function the line "kill -0 $pid 2>/dev/null && failure=1" doesnt change failure to 1 because kill returns 1 (bash: kill: (97) - Not owner). This means that if a user calls "/etc/rc.d/init.d/smb stop" he always gets [ OK ] even though the program is still running.

comment:3 by gerard@…, 22 years ago

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

comment:4 by gerard@…, 22 years ago

dependson: 30
Resolution: fixed
Status: assignedclosed

comment:5 by gerard@…, 22 years ago

I haven't done the variables yet, carrying that over to 1.10

comment:6 by markh@…, 22 years ago

these install ok and look good to me. closing

Note: See TracTickets for help on using tickets.