proxmox-backup/etc/pbs-network-config-commit.service
Thomas Lamprecht 0a39dc6fb8 add pbs-network-config-commit systemd service
This mirrors the 'pvenetcommit' service from Proxmox VE, but is even a
bit simpler as we do not care about OVS.

Order the service after the 'pvenetcommit' service so that we ensure
that it can nicely work in a PVE + PBS co-installed environment, even
if one service (probably PVE) would get more complex in the future.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2025-07-30 14:45:14 +02:00

15 lines
351 B
Desktop File

[Unit]
Description=Commit any pending Proxmox Backup Server network changes
DefaultDependencies=no
After=local-fs.target pvenetcommit.service
Before=sysinit.target
[Service]
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