From 1767881b4ac34e63e989f36d4a3441ac0060c1b4 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 25 Nov 2015 13:00:38 +0100 Subject: [PATCH] pve-manager.service: do not invoke old init.d script redirect stdout/stderr to null, because we already log to pve task log. --- bin/init.d/pve-manager.service | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/init.d/pve-manager.service b/bin/init.d/pve-manager.service index 3af4cc36..451dfd43 100644 --- a/bin/init.d/pve-manager.service +++ b/bin/init.d/pve-manager.service @@ -12,10 +12,14 @@ After=pve-firewall.service After=lxc.service [Service] -ExecStart=/etc/init.d/pve-manager start -ExecStop=/etc/init.d/pve-manager stop +Environment="PVE_LOG_ID=pve-manager" +ExecStart=/usr/bin/pvesh --nooutput create /nodes/localhost/startall +ExecStop=-/usr/bin/vzdump -stop +ExecStop=/usr/bin/pvesh --nooutput create /nodes/localhost/stopall Type=oneshot RemainAfterExit=yes +StandardOutput=null +StandardError=null [Install] WantedBy=multi-user.target