[ClusterLabs] ocf scripts shell and local variables

Gabriele Bulfon gbulfon at sonicle.com
Mon Aug 29 09:06:59 UTC 2016


Thanks, though this does not work :)
----------------------------------------------------------------------------------------
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon
----------------------------------------------------------------------------------
Da: Dmitri Maziuk
A: users at clusterlabs.org
Data: 26 agosto 2016 17.02.12 CEST
Oggetto: Re: [ClusterLabs] ocf scripts shell and local variables
On 2016-08-26 08:56, Ken Gaillot wrote:
On 08/26/2016 08:11 AM, Gabriele Bulfon wrote:
I tried adding some debug in ocf-shellfuncs, showing env and ps -ef into
the corosync.log
I suspect it's always using ksh, because in the env output I produced I
find this: KSH_VERSION=.sh.version
This is normally not present in the environment, unless ksh is running
the shell.
The RAs typically start with #!/bin/sh, so whatever that points to on
your system is what will be used.
ISTR exec() family will ignore the shebang and run whatever shell's in
user's /etc/passwd. Or something. Try changing that one.
Dima
_______________________________________________
Users mailing list: Users at clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users
Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/users/attachments/20160829/0ef65660/attachment-0002.html>


More information about the Users mailing list