diff --git a/createvm.service b/createvm.service new file mode 100644 index 0000000..252150c --- /dev/null +++ b/createvm.service @@ -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 \ No newline at end of file