From c02d03b50cd1e046cc7b73af8afcc76a4cff7ad3 Mon Sep 17 00:00:00 2001 From: Zexi Li Date: Wed, 1 Aug 2018 16:25:58 +0800 Subject: [PATCH] add rpms required files --- build/aliyuncli/vars | 1 + .../yunion/share/region/yunion-region2.service | 17 +++++++++++++++++ build/region/vars | 2 ++ .../share/scheduler/yunion-scheduler.service | 17 +++++++++++++++++ build/scheduler/vars | 2 ++ 5 files changed, 39 insertions(+) create mode 100644 build/aliyuncli/vars create mode 100644 build/region/root/opt/yunion/share/region/yunion-region2.service create mode 100644 build/region/vars create mode 100644 build/scheduler/root/opt/yunion/share/scheduler/yunion-scheduler.service create mode 100644 build/scheduler/vars diff --git a/build/aliyuncli/vars b/build/aliyuncli/vars new file mode 100644 index 0000000000..e86e9a7d1e --- /dev/null +++ b/build/aliyuncli/vars @@ -0,0 +1 @@ +DESCRIPTION="ALIYUN Command Line Utility" diff --git a/build/region/root/opt/yunion/share/region/yunion-region2.service b/build/region/root/opt/yunion/share/region/yunion-region2.service new file mode 100644 index 0000000000..4f4a306f17 --- /dev/null +++ b/build/region/root/opt/yunion/share/region/yunion-region2.service @@ -0,0 +1,17 @@ +[Unit] +Description=Yunion Cloud Region Controller Service +Documentation=http://doc.yunionyun.com +After=network.target httpd.service yunion-glance-registry.service yunion-glance-api.service yunion-glance-scrubber.service + +[Service] +Type=simple +User=yunion +Group=yunion +ExecStart=/opt/yunion/bin/region --config /etc/yunion/region.conf +WorkingDirectory=/opt/yunion +KillMode=process +Restart=always +RestartSec=30 + +[Install] +WantedBy=multi-user.target diff --git a/build/region/vars b/build/region/vars new file mode 100644 index 0000000000..ba03f8f518 --- /dev/null +++ b/build/region/vars @@ -0,0 +1,2 @@ +DESCRIPTION="Yunion Cloud Region Controller Service" +# SERVICE="yes" diff --git a/build/scheduler/root/opt/yunion/share/scheduler/yunion-scheduler.service b/build/scheduler/root/opt/yunion/share/scheduler/yunion-scheduler.service new file mode 100644 index 0000000000..fc89551131 --- /dev/null +++ b/build/scheduler/root/opt/yunion/share/scheduler/yunion-scheduler.service @@ -0,0 +1,17 @@ +[Unit] +Description=Yunion Cloud Region Scheduler Service +Documentation=http://doc.yunionyun.com +After=network.target httpd.service yunion-glance-registry.service yunion-glance-api.service yunion-glance-scrubber.service yunion-region.service yunion-region-dns.service + +[Service] +Type=simple +User=yunion +Group=yunion +ExecStart=/opt/yunion/bin/scheduler --config /etc/yunion/region.conf +WorkingDirectory=/opt/yunion +KillMode=process +Restart=always +RestartSec=30 + +[Install] +WantedBy=multi-user.target diff --git a/build/scheduler/vars b/build/scheduler/vars new file mode 100644 index 0000000000..41c46860b8 --- /dev/null +++ b/build/scheduler/vars @@ -0,0 +1,2 @@ +DESCRIPTION="Yunion Cloud Region Scheduler Service" +# SERVICE="yes"