added service file
This commit is contained in:
parent
a38ead8070
commit
0cffbebc1b
1 changed files with 14 additions and 0 deletions
14
av-service.service
Normal file
14
av-service.service
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
[Unit]
|
||||||
|
Description=AV service
|
||||||
|
Description=klnagent.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Environment="PATH=/bin:/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
|
||||||
|
Type=simple
|
||||||
|
Restart=on-failure
|
||||||
|
User=root
|
||||||
|
WorkingDirectory=/opt/av-service
|
||||||
|
ExecStart=/usr/bin/java -jar av-service.jar
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Loading…
Add table
Add a link
Reference in a new issue