From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET
Description of problem:
IÂ´ve created a initscript, gada_cp, in /etc/init.d and installed it
with the chkconfig --add command.
When i try to start it using the GUI serviceconf or the
command "service gada_cp start" it returns:
"Starting gada_cp: [OK]"
But "service --status gada_cp" returns "gada_cp dead but subsys
I am able to start the process by executing the initscript directly:
Then it starts and stops normaly and runs perfectly. This is true for
all commands, start|stop|restart|condrestart.
IÂ´ve tried to remove the the /var/lock/subsys/gada_cp file and
restarting using the service command but with the same outcome as
Worth noting is that when I start the process
with /etc/init.d/gada_cp start I can stop it with "service gada_cp
stop" but not restart or start.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.create initscript and install with "chkconfig"
2.start it with service or serviceconf
3.start it directly by executing the /etc/init.d/*** file
Actual Results: gada_cp dead but subsys locked
Expected Results: gada_cp (PID) is running...
Looks like you have a problem in you init script.
is returning bad data.
But when I issue the command /etc/init.d/gada_cp status it returns
the proper value...
The script works fine as long I donÂ´t start it with the command
you can do a sh -x service gada_cp start and see what service is
doing. It is just a script.
sh -x service nfs restart
Ends up executing
env -i LANG=en_US.UTF-8
Great command for future usage. WeÂ´ve had problems with frequent
system hangings on ES 3.0 with the 2.4.21-9 Kernel so we suspected
memory leakage and upgraded to 2.4.21-27. After that upgrade and the
following reboot it (the initscript starting with service)started to
work. I guess that has nothing to do with it but nothing else where
touched or changed. Strange... Well, that problem solved though...
Thanks a lot...