[pve-devel] [PATCH V2 pve-manager] Make a new systemd target.
Wolfgang Link
w.link at proxmox.com
Wed Apr 26 13:17:41 CEST 2017
This will ensure all storages are up before pveproxy is running.
---
bin/init.d/Makefile | 3 ++-
bin/init.d/pve-storage.target | 10 ++++++++++
bin/init.d/pveproxy.service | 7 ++-----
3 files changed, 14 insertions(+), 6 deletions(-)
create mode 100644 bin/init.d/pve-storage.target
diff --git a/bin/init.d/Makefile b/bin/init.d/Makefile
index 475f01d..f984fe1 100644
--- a/bin/init.d/Makefile
+++ b/bin/init.d/Makefile
@@ -17,7 +17,8 @@ SERVICES= \
pve-manager.service \
pvedaemon.service \
pveproxy.service \
- spiceproxy.service
+ spiceproxy.service \
+ pve-storage.target
.PHONY: install
install: ${SCRIPTS}
diff --git a/bin/init.d/pve-storage.target b/bin/init.d/pve-storage.target
new file mode 100644
index 0000000..4fe6a89
--- /dev/null
+++ b/bin/init.d/pve-storage.target
@@ -0,0 +1,10 @@
+[Unit]
+Description=PVE Storage Target
+Wants=remote-fs.target
+After=remote-fs.target
+After=ceph.service
+After=ceph-mon.target
+After=ceph-osd.target
+After=ceph-mds.target
+After=sheepdog.service
+After=glusterd.service
diff --git a/bin/init.d/pveproxy.service b/bin/init.d/pveproxy.service
index 25b6d3b..9c3c832 100644
--- a/bin/init.d/pveproxy.service
+++ b/bin/init.d/pveproxy.service
@@ -4,14 +4,11 @@ ConditionPathExists=/usr/bin/pveproxy
Wants=pve-cluster.service
Wants=pvedaemon.service
Wants=ssh.service
-Wants=remote-fs.target
+Wants=pve-storage.target
+After=pve-storage.target
After=pve-cluster.service
After=pvedaemon.service
After=ssh.service
-After=remote-fs.target
-After=ceph.service
-After=sheepdog.service
-After=glusterd.service
[Service]
ExecStart=/usr/bin/pveproxy start
--
2.1.4
More information about the pve-devel
mailing list