add service unit
This commit is contained in:
1 parent
255451b8e3
commit
becbb5d4d3
1 file changed
+15
@@ -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
|
||||||
Reference in new issue
Block a user