Add createvm.service
This commit is contained in:
parent
733459315c
commit
75c9a2ea9d
1 changed files with 15 additions and 0 deletions
15
createvm.service
Normal file
15
createvm.service
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
[Unit]
|
||||
Description=Create VM service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/python3 /opt/createvm/app.py
|
||||
WorkingDirectory/opt/createvm
|
||||
User=root
|
||||
Restart=always
|
||||
StandardOutput=syslog
|
||||
StandardError=syslog
|
||||
SyslogIdentifier=createvm
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue