blob: afadbfe53d8d18e959cadf9c519c82235a79325a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#This is needed because user units cannot check or interact with system units such as network-online.target
#https://github.com/containers/podman/issues/22197
#https://github.com/systemd/systemd/issues/3312
[Unit]
Description=Check for system level network-online.target (for users)
[Service]
Type=oneshot
ExecStart=bash -c 'until systemctl is-active network-online.target; do sleep 1; done'
RemainAfterExit=yes
[Install]
WantedBy=default.target
|