You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by pa...@apache.org on 2019/01/09 15:34:42 UTC

[cloudstack] 05/09: move services to systemd dir

This is an automated email from the ASF dual-hosted git repository.

paul_a pushed a commit to branch remove_dump_snapshot
in repository https://gitbox.apache.org/repos/asf/cloudstack.git

commit d414b51130614cc8a60b4377ae014a4fea15f36f
Author: Paul Angus <pa...@shapeblue.com>
AuthorDate: Sun Dec 23 07:29:09 2018 +0000

    move services to systemd dir
---
 systemvm/debian/etc/systemd/system/cloud.service        | 12 ++++++++++++
 systemvm/debian/lib/systemd/system/baremetal-vr.service | 12 ++++++++++++
 2 files changed, 24 insertions(+)

diff --git a/systemvm/debian/etc/systemd/system/cloud.service b/systemvm/debian/etc/systemd/system/cloud.service
new file mode 100644
index 0000000..e3824bf
--- /dev/null
+++ b/systemvm/debian/etc/systemd/system/cloud.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=CloudStack Agent service
+After=cloud-early-config.service network.target cloud-postinit.service local-fs.target
+
+[Install]
+WantedBy=multi-user.target
+
+[Service]
+Type=simple
+WorkingDirectory=/usr/local/cloud/systemvm
+ExecStart=/usr/local/cloud/systemvm/_run.sh
+Restart=on-failure
diff --git a/systemvm/debian/lib/systemd/system/baremetal-vr.service b/systemvm/debian/lib/systemd/system/baremetal-vr.service
new file mode 100644
index 0000000..f880f0c
--- /dev/null
+++ b/systemvm/debian/lib/systemd/system/baremetal-vr.service
@@ -0,0 +1,12 @@
+[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
+Restart=on-failure