[ClusterLabs] ocf scripts shell and local variables

Dmitri Maziuk dmitri.maziuk at gmail.com
Fri Aug 26 11:02:12 EDT 2016


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





More information about the Users mailing list