mirror of
https://github.com/edu4rdshl/linuxscripts.git
synced 2026-07-17 23:24:52 +00:00
16 lines
444 B
Desktop File
16 lines
444 B
Desktop File
[Unit]
|
|
Description=Restart networking services if internet connection not detected
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ProtectHome=true
|
|
ProtectSystem=strict
|
|
ExecStart=/usr/bin/rnetworking
|
|
CapabilityBoundingSet=CAP_IPC_LOCK CAP_NET_ADMIN CAP_NET_RAW CAP_SETGID CAP_SETUID CAP_SYS_CHROOT CAP_DAC_OVERRIDE LimitNPROC=10
|
|
DeviceAllow=/dev/null rw
|
|
DeviceAllow=/dev/net/tun rw
|
|
KillMode=process
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|