resmo commented on a change in pull request #2892: vr: memory and swap optimizations URL: https://github.com/apache/cloudstack/pull/2892#discussion_r224752361
########## File path: systemvm/debian/etc/systemd/system/baremetal-vr.service ########## @@ -0,0 +1,11 @@ +[Unit] +Description=CloudStack Baremetal VR service +After=network.target local-fs.target + +[Install] +WantedBy=multi-user.target + +[Service] +Type=simple +WorkingDirectory=/opt/cloud/bin +ExecStart=/usr/bin/python /opt/cloud/bin/baremetal-vr.py Review comment: let systemd handle the restart on failure. ~~~diff + Restart=on-failure ~~~ ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
