[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