iotserver.service 342 Bytes
Newer Older
Vladislav Rykov's avatar
Vladislav Rykov committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=uWSGI IoT Server

[Service]
User=<user>
Type=simple
ExecStart=/home/<user>/<path-to-directory>/env/bin/uwsgi /home/<user>/<path-to-directory>/app/server.ini
WorkingDirectory=/home/<user>/<path-to-directory>/app
Restart=on-Failure
KillSignal=SIGQUIT
Environment="FLASK_ENV=development"

[Install]
WantedBy=multi-user.target