Red Hat Bugzilla – Bug 207377
piranha-gui: initscript stop action does not work
Last modified: 2009-04-16 16:23:41 EDT
Description of problem:
Action stop for piranha-gui init.d script does not work as expected.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
3.ps -ef | grep piranha_gui
Managed to track issue down to source of problem. stop function calls killproc
function from /etc/init.d/functions. Somewhere in the body of killproc, you can
kill $killlevel $pid >/dev/null 2>&1
This fails with error:
kill: SIGTERM: invalid signal specification
Issue is caused by bash(3), which no longer accepts SIG<signal name> as argument
when started as sh. Only <signal name> without SIG prefix is ok.
Changing sh in sha-bang line of init script to bash or calling killproc as:
killproc piranha_gui -TERM
should do the trick.
Fixed in HEAD and RHEL5
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.