oshipka/provision/gunicorn.service
2020-04-15 21:56:06 +02:00

15 lines
299 B
Desktop File

[Unit]
Description=gunicorn service
Requires=network.target
After=network.target
[Service]
User=pi2
Type=simple
WorkingDirectory=/home/pi2/watch
ExecStart=/bin/bash -c 'export OSHIPKA_PATH=/home/pi2/oshipka; $OSHIPKA_PATH/oshipka.sh prod 5000'
Restart=on-failure
[Install]
WantedBy=default.target