2012-01-31 06:40:51 -08:00
|
|
|
#!/bin/sh
|
2012-05-14 07:41:07 -07:00
|
|
|
cat <<-ENDOFMESSAGE>clouseau_start
|
2012-01-31 06:40:51 -08:00
|
|
|
#!/bin/sh
|
|
|
|
if [ \$# -lt 1 ]
|
|
|
|
then
|
2012-05-14 07:41:07 -07:00
|
|
|
echo "Usage: clouseau_start <executable> [executable parameters]"
|
|
|
|
else
|
|
|
|
# Start clouseau daemon (will start single instance), then run app
|
|
|
|
clouseaud
|
2013-08-30 08:33:29 -07:00
|
|
|
#Set the ELM_CLOUSEAU in case preload is disabled.
|
|
|
|
ELM_CLOUSEAU=1 LD_PRELOAD="$1/libclouseau.so" "\$@"
|
2012-01-31 06:40:51 -08:00
|
|
|
fi
|
|
|
|
ENDOFMESSAGE
|
|
|
|
|
2012-05-16 04:07:09 -07:00
|
|
|
cat <<-ENDOFMESSAGE>clouseau
|
|
|
|
#!/bin/sh
|
|
|
|
if [ \$# -gt 0 ]
|
|
|
|
then
|
|
|
|
# Start clouseau daemon (will start single instance), then run app
|
2012-07-29 00:51:40 -07:00
|
|
|
clouseau_start "\$@" &
|
2012-05-16 04:07:09 -07:00
|
|
|
fi
|
|
|
|
|
|
|
|
clouseau_client
|
|
|
|
ENDOFMESSAGE
|
|
|
|
|
|
|
|
chmod +x clouseau
|
2012-05-14 07:41:07 -07:00
|
|
|
chmod +x clouseau_start
|