~ubuntu-branches/ubuntu/lucid/rabbitmq-server/lucid

« back to all changes in this revision

Viewing changes to debian/rabbitmq-script-wrapper

  • Committer: Bazaar Package Importer
  • Author(s): John Leuner
  • Date: 2010-02-19 17:30:57 UTC
  • mfrom: (0.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20100219173057-84hlnj2bsm1rvoaf
Tags: 1.7.2-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
##   are Copyright (C) 2007-2008 LShift Ltd, Cohesive Financial
20
20
##   Technologies LLC, and Rabbit Technologies Ltd.
21
21
##
22
 
##   Portions created by LShift Ltd are Copyright (C) 2007-2009 LShift
 
22
##   Portions created by LShift Ltd are Copyright (C) 2007-2010 LShift
23
23
##   Ltd. Portions created by Cohesive Financial Technologies LLC are
24
 
##   Copyright (C) 2007-2009 Cohesive Financial Technologies
 
24
##   Copyright (C) 2007-2010 Cohesive Financial Technologies
25
25
##   LLC. Portions created by Rabbit Technologies Ltd are Copyright
26
 
##   (C) 2007-2009 Rabbit Technologies Ltd.
 
26
##   (C) 2007-2010 Rabbit Technologies Ltd.
27
27
##
28
28
##   All Rights Reserved.
29
29
##
46
46
 
47
47
if [ `id -u` = 0 ] ; then
48
48
    su rabbitmq -s /bin/sh -c "/usr/lib/rabbitmq/bin/${SCRIPT} ${CMDLINE}"
 
49
elif [ `id -u` = `id -u rabbitmq` ] ; then
 
50
    /usr/lib/rabbitmq/bin/${SCRIPT} "$@"
49
51
else
50
52
    /usr/lib/rabbitmq/bin/${SCRIPT}
51
 
    echo -e "\nOnly root should run ${SCRIPT}\n"
 
53
    echo
 
54
    echo "Only root or rabbitmq should run ${SCRIPT}"
 
55
    echo
52
56
    exit 1
53
57
fi
54
58