python-redfish/dmtf/mockup_1.1.0/redfish-setup.sh
Uggla 6840cc878f Add a new mechanism to create a container running simulator 1.1.0
- Move previous simulator files into mockup_0.99.0a directory.
- Cleanup, adapt mockup_0.99.0a files.
- Add mockup_1.1.0 directory to host the new simulator files.

Note :
- First redfish-client tests against this new mockup work well.
- Of course, this is a first commit so it could be refined.

Change-Id: I88ac480e5b303922be5ec37e1a14a91f68d0bd92
2017-03-08 01:50:50 +00:00

20 lines
466 B
Bash

#!/bin/bash
function start_apache {
[ -f "/usr/local/apache2/logs/httpd.pid" ] && rm -f "/usr/local/apache2/logs/httpd.pid"
echo "Launching apache2 in foreground with /usr/local/apache2/bin/apachectl -DFOREGROUND -k start"
/usr/local/apache2/bin/apachectl -DFOREGROUND -k start
}
function stop_apache {
echo "Stopping apache2"
/usr/local/apache2/bin/apachectl stop
}
# Trap to have a clean exit
trap stop_apache HUP INT QUIT KILL TERM
# Main
start_apache