Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37758689
en ru br
ALT Linux repos
S:3.12.6-alt1

Group :: System/Servers
RPM: rabbitmq-server

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

#!/bin/bash
# Escape spaces and quotes, because shell is revolting.
for arg in "$@" ; do
# Escape quotes in parameters, so that they're passed through cleanly.
arg=$(sed -e 's/"/\\"/' <<-END
$arg
END
)
CMDLINE="${CMDLINE} \"${arg}\""
done

cd /var/lib/rabbitmq

SCRIPT=`basename $0`

if [ `id -u` = 0 ] ; then
su -l rabbitmq -s /bin/sh -c "/usr/lib/rabbitmq/${SCRIPT} ${CMDLINE}"
else
/usr/lib/rabbitmq/${SCRIPT}
echo -e "\nOnly root should run ${SCRIPT}\n"
exit 1
fi

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin