summaryrefslogtreecommitdiffstats
path: root/www/orion-devel/files/orion.sh
blob: f76448b0b83e699d042d2c4f6a1f64ca6dc5ad5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

# Set some variables
MYSELF=`basename $0`

case "$1" in
	start)
		su -f -m %%USER%% -c "exec %%CONTROL_SCRIPT%% start" && echo -n ' %%APP_SHORTNAME%%'
		;;
	stop)
		su -f -m %%USER%% -c "exec %%CONTROL_SCRIPT%% stop" && echo -n ' %%APP_SHORTNAME%%'
		;;
	*)
		echo ""
		echo "Usage: ${MYSELF} { start | stop }"
		echo ""
		exit 64
		;;
esac
OpenPOWER on IntegriCloud