Files
deb-python-pysaml2/example/all.sh
Hank Leininger 104198416b Make sp-wsgi/ layout agree with other examples.
idp2/, idp2_repoze/, and sp-repoze/ all agree that configs should be
{idp,sp}_conf.py, but sp-wsgi/ was the exception, calling its config
just conf.py.  Changed it to match the others, and updated all.sh
accordingly.
2014-04-02 21:42:01 -04:00

38 lines
643 B
Bash
Executable File

#!/bin/sh
startme() {
cd sp-wsgi
if [ ! -f sp_conf.py ] ; then
cp sp_conf.py.example sp_conf.py
fi
../../tools/make_metadata.py sp_conf > sp.xml
cd ../idp2
if [ ! -f idp_conf.py ] ; then
cp idp_conf.py.example idp_conf.py
fi
../../tools/make_metadata.py idp_conf > idp.xml
cd ../sp-wsgi
./sp.py sp_conf &
cd ../idp2
./idp.py idp_conf &
cd ..
}
stopme() {
pkill -f "sp.py"
pkill -f "idp.py"
}
case "$1" in
start) startme ;;
stop) stopme ;;
restart) stopme; startme ;;
*) echo "usage: $0 start|stop|restart" >&2
exit 1
;;
esac