summarylogtreecommitdiffstats
path: root/pump.io
blob: 81fd9abaed8dfd97ea9eb264d0850c80db82e8fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash

WorkingDirectory=/usr/share/webapps/pump.io
cd $WorkingDirectory
# depending on parameter -- startup, shutdown, restart 
# of the instance and listener or usage display 

case "$1" in
    start)
        # Oracle listener and instance startup
	node ./bin/pump -c /etc/webapps/pump.io/pump.io.json start &
        ;;
    stop)
 	# Oracle listener and instance shutdown
	node ./bin/pump -c /etc/webapps/pump.io/pump.io.json stop
        ;;
    restart)
        $0 stop
        $0 start
        ;;
    *)
        echo "Usage: $0 start|stop|restart"
        exit 1
esac
exit 0