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
|
2013-01-31 04:00:10 -08:00
|
|
|
LD_PRELOAD="$1/libclouseau_preload.so" "\$@"
|
2012-01-31 06:40:51 -08:00
|
|
|
fi
|
|
|
|
ENDOFMESSAGE
|
|
|
|
|
2012-05-16 04:07:09 -07:00
|
|
|
cat <<-ENDOFMESSAGE>clouseau
|
|
|
|
#!/bin/sh
|
2013-01-28 12:43:53 -08:00
|
|
|
clouseau_client &
|
2012-05-16 04:07:09 -07:00
|
|
|
if [ \$# -gt 0 ]
|
|
|
|
then
|
|
|
|
# Start clouseau daemon (will start single instance), then run app
|
2013-01-28 12:43:53 -08:00
|
|
|
clouseau_start "\$@"
|
2012-05-16 04:07:09 -07:00
|
|
|
fi
|
|
|
|
|
|
|
|
ENDOFMESSAGE
|
|
|
|
|
|
|
|
chmod +x clouseau
|
2012-05-14 07:41:07 -07:00
|
|
|
chmod +x clouseau_start
|