add service unit

This commit is contained in:
Joerg Lehmann 2019-08-05 17:59:21 +02:00
parent 255451b8e3
commit becbb5d4d3
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
[Unit]
Description=Lorahandler web service
After=syslog.target
After=network.target redis.service
[Service]
Type=simple
User=beieli
Group=beieli
WorkingDirectory=/home/beieli/lorahandler
ExecStart=/home/beieli/lorahandler/lorahandler
Restart=always
[Install]
WantedBy=multi-user.target