[ClusterLabs] ocf scripts shell and local variables

Dmitri Maziuk dmitri.maziuk at gmail.com
Mon Aug 29 15:13:18 UTC 2016


On 2016-08-29 04:06, Gabriele Bulfon wrote:
> Thanks, though this does not work :)

Uhm... right. Too many languages, sorry: perl's system() will call the 
login shell, system system() uses /bin/sh, and exec()s will run whatever 
the programmer tells them to. The point is none of them cares what 
shell's in shebang line AFAIK.

But anyway, you're correct; a lot of linux "shell" scripts are bash-only 
and pacemaker RAs are no exception.

Dima





More information about the Users mailing list