Create./conf/systemd.service
Signed-off-by: Mitsuo Makuda <mitsuo_makuda@bdsmhypnosisbasement.com>main
parent
182ab92745
commit
b58ddd01a9
@ -0,0 +1,15 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Buttons
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=__APP__
|
||||||
|
Group=__APP__
|
||||||
|
WorkingDirectory=__FINALPATH__/
|
||||||
|
ExecStart=__FINALPATH__/venv/bin/buttons --storagedir __DATADIR__
|
||||||
|
StandardOutput=append:/var/log/__APP__/__APP__.log
|
||||||
|
StandardError=inherit
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue