mirror of
https://github.com/edu4rdshl/linuxscripts.git
synced 2026-07-18 07:34:45 +00:00
Change systemd user units to systemd system units
This commit is contained in:
parent
2cb85d0cca
commit
9e36d7c157
4 changed files with 24 additions and 2 deletions
13
etc/systemd/system/rnetworking.service
Normal file
13
etc/systemd/system/rnetworking.service
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=Restart networking services if internet connection not detected
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/rnetworking
|
||||
TimeoutStopSec=180
|
||||
KillMode=process
|
||||
KillSignal=SIGINT
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
9
etc/systemd/system/rnetworking.timer
Normal file
9
etc/systemd/system/rnetworking.timer
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=Comprobación automatica de servicios de red cada 5 minutos
|
||||
[Timer]
|
||||
OnBootSec=2min
|
||||
OnUnitActiveSec=10min
|
||||
Unit=rnetworking.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue