Add systemd unit
This commit is contained in:
14
systemd/yasi-daemon.service
Normal file
14
systemd/yasi-daemon.service
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Yasi Daemon
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=yasi-daemon
|
||||||
|
Environment="FLASK_ENV=production"
|
||||||
|
|
||||||
|
User=yasi
|
||||||
|
Group=yasi
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Reference in New Issue
Block a user