Skip to content
This repository
tag: DEB_4_9_8_2003…
Fetching contributors…

Cannot retrieve contributors at this time

executable file 15 lines (13 sloc) 0.609 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#! /bin/sh -e

# source configuration file with defaults
if [ -f /etc/default/interchange ]; then
. /etc/default/interchange
fi

. /etc/interchange/init.cfg
OPTS="SocketFile=/var/run/interchange/interchange.sock IPCsocket=/var/run/interchange/interchange.sock.ipc PIDfile=/var/run/interchange/interchange.pid --pidfile=/var/run/interchange/interchange.pid --log=/var/log/interchange/error.log --rundir=/var/run/interchange"
CMD="env MINIVEND_STORABLE=$USE_STORABLE MINIVEND_FORCE_THREADS=1 /usr/lib/interchange/bin/interchange $OPTS $@"
if [ "$UID" -eq 0 ]; then
su -s /bin/sh -c "$CMD" $USER
else
$CMD
fi
Something went wrong with that request. Please try again.