Add install section to Ironic agent systemd service file

"Install" section is necessary for for "systemctl enable" command.

Change-Id: I590ac3a1b58a80e156967dd2787a1ba88e8a6fd5
This commit is contained in:
Yuriy Zveryanskyy 2014-12-16 18:37:22 +02:00
parent 9a53631e1c
commit 26e2ec6faa

View File

@ -13,6 +13,8 @@ Description=Ironic Python Agent\n
[Service] [Service]
ExecStart=/usr/bin/ironic-python-agent ExecStart=/usr/bin/ironic-python-agent
Restart=always 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 sudo systemctl enable ironic-python-agent.service