From 26e2ec6faa914fb06dba86b90586fbc69c27143e Mon Sep 17 00:00:00 2001 From: Yuriy Zveryanskyy Date: Tue, 16 Dec 2014 18:37:22 +0200 Subject: [PATCH] Add install section to Ironic agent systemd service file "Install" section is necessary for for "systemctl enable" command. Change-Id: I590ac3a1b58a80e156967dd2787a1ba88e8a6fd5 --- elements/ironic-agent/install.d/60-ironic-agent-install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/elements/ironic-agent/install.d/60-ironic-agent-install b/elements/ironic-agent/install.d/60-ironic-agent-install index 94fcd1ef..b1f6d04e 100755 --- a/elements/ironic-agent/install.d/60-ironic-agent-install +++ b/elements/ironic-agent/install.d/60-ironic-agent-install @@ -13,6 +13,8 @@ Description=Ironic Python Agent\n [Service] ExecStart=/usr/bin/ironic-python-agent Restart=always -RestartSec=30s\n' > /usr/lib/systemd/system/ironic-python-agent.service +RestartSec=30s\n +[Install] +WantedBy=multi-user.target\n' > /usr/lib/systemd/system/ironic-python-agent.service sudo systemctl enable ironic-python-agent.service