forked from iarv/meshing-around
23 lines
410 B
Plaintext
23 lines
410 B
Plaintext
[Unit]
|
|
Description=MeshingAround-WebServer
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=pi
|
|
Group=pi
|
|
WorkingDirectory=/dir/
|
|
ExecStart=python3 modules/web.py
|
|
ExecStop=
|
|
KillSignal=SIGINT
|
|
Environment="REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt"
|
|
Environment="SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt"
|
|
Environment=PYTHONUNBUFFERED=1
|
|
Restart=on-failure
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|
|
|
|
|