Files
        @ c34648b1a4d6
    
        
              Branch filter: 
        
    Location: FVDE/ennstatus/Scripts/init_script_gunicorn.sh - annotation
        
            
            c34648b1a4d6
            719 B
            text/x-sh
        
        
    
    Add support for flashproxy an meek an version bump
    f20b94715c5b f20b94715c5b 592bcf2e1517 592bcf2e1517 592bcf2e1517 592bcf2e1517 f20b94715c5b f20b94715c5b 592bcf2e1517 592bcf2e1517 592bcf2e1517 592bcf2e1517 f20b94715c5b f20b94715c5b 592bcf2e1517 592bcf2e1517 592bcf2e1517 592bcf2e1517 592bcf2e1517 592bcf2e1517 592bcf2e1517 592bcf2e1517 592bcf2e1517 592bcf2e1517 592bcf2e1517 592bcf2e1517 592bcf2e1517 592bcf2e1517 592bcf2e1517 592bcf2e1517 592bcf2e1517 592bcf2e1517 592bcf2e1517 592bcf2e1517 592bcf2e1517 592bcf2e1517 592bcf2e1517  | #!/bin/sh
NAME=ennstatus
DESC=ennstatus
 
start () {
    . /var/www/enn.lu/ennstatus/bin/activate
    gunicorn -w 4 --chdir /var/www/enn.lu/ennstatus/chroot/ -D -p /tmp/ennstatus.pid -u www-data -g www-data -e ENNSTATUS_SETTINGS=/var/www/enn.lu/ennstatus/chroot/config.py -b 127.0.0.1 ennstatus:app
    return
}
 
stop () {
    kill $(cat /tmp/ennstatus.pid)
    return
}
 
case "$1" in
    start)
        echo "Starting $DESC"
        start
        ;;
    stop)
        echo "Stopping $DESC"
        stop
        ;;
    restart)
        echo "Restarting $DESC"
        stop
        sleep 1
        start
        ;;
    *)
        echo "Usage: ennstatus {start|stop|restart}"
        exit 1
        ;;
    esac
exit 0
 |