pve-manager/services/pvenetcommit.service
Thomas Lamprecht 6c83ba5823 pvenetcommit: better handle non-existent pending changes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-10-20 16:47:06 +02:00

16 lines
357 B
Desktop File

[Unit]
Description=Commit Proxmox VE network changes
DefaultDependencies=no
After=local-fs.target
Before=sysinit.target
[Service]
ExecStartPre=-/bin/rm -f /etc/openvswitch/conf.db
Environment="FN=/etc/network/interfaces"
ExecStart=sh -c 'if [ -f ${FN}.new ]; then mv ${FN}.new ${FN}; fi'
Type=oneshot
RemainAfterExit=yes
[Install]
WantedBy=sysinit.target