[torquedev] Bug in /etc/rc.d/init.d/pbs_mom: replace SIGHUP by HUP

Chris Samuel csamuel at vpac.org
Thu Jun 11 18:18:54 MDT 2009

----- "Ole Holm Nielsen" <Ole.H.Nielsen at fysik.dtu.dk> wrote:

> Upon googling for the above error I found a page
> http://www.linux-archive.org/crux/57882-problem-reloading-sighup-some-services.html
> which says that if bash is invoked as /bin/sh then the kill command
> uses POSIX syntax where apparently the SIG prefix is illegal.  Indeed,
> doing a "kill -l" inside a script lists the signals without a SIG prefix.
> So the problem appears to be understood, but I just don't know of a
> portable solution to this problem.

I'd suggest we stick to the POSIX spec for portability reasons;
not least being that some Linux distros use another shell for
/bin/sh, not bash, notwithstanding the glibc maintainers comments
on bash being the only supported shell for glibc.

Christopher Samuel - (03) 9925 4751 - Systems Manager
 The Victorian Partnership for Advanced Computing
 P.O. Box 201, Carlton South, VIC 3053, Australia
VPAC is a not-for-profit Registered Research Agency

More information about the torquedev mailing list