forked from proxmox-mirrors/proxmox-backup
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>
15 lines
351 B
Desktop File
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
|