[Unit] Description=uWSGI instance for __APP__ Requires=network.target After=network.target [Service] User=__APP__ Group=__APP__ RemainAfterExit=yes WorkingDirectory=__FINALPATH__ ExecStart=/usr/bin/uwsgi \ --ini __FINALPATH__/syncserver.ini \ --socket __FINALPATH__/socket Restart=always StandardError=syslog [Install] WantedBy=multi-user.target