#324 closed defect (fixed)
lfs-bootscripts-1.9
Reported by: | Owned by: | ||
---|---|---|---|
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 , 23 years ago
dependson: | → 30 |
---|
comment:2 by , 23 years ago
comment:3 by , 23 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:4 by , 23 years ago
dependson: | 30 |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
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.