Fixed rescue ConditionPathExists flag

While looking at some logs, I discovered that systemd was now erroring about
the ConditionPathExists parameter. It appears that belongs in unit instead.

As such, moving.

Error: systemd[1]: /usr/lib/systemd/system/ironic-python-agent.service:6: Unknown key name 'ConditionPathExists' in section 'Service', ignoring.

Change-Id: Ifc2b2cbde939d9d9b9fec4e9a5f548e5420650a2
Signed-off-by: Julia Kreger <juliaashleykreger@gmail.com>
This commit is contained in:
Julia Kreger
2025-12-17 08:25:09 -08:00
parent 059b0bdf5d
commit 9c877b2a90

View File

@@ -1,9 +1,9 @@
[Unit]
Description=Ironic Python Agent
After=network-online.target
ConditionPathExists=!/etc/.rescued
[Service]
ConditionPathExists=!/etc/.rescued
ExecStartPre=/sbin/modprobe vfat
ExecStart=/usr/local/bin/ironic-python-agent --config-dir /etc/ironic-python-agent.d/
Restart=always