Use systemd-user-units as folder for user units services

This commit is contained in:
Eduard Tolosa 2018-11-06 22:08:49 -05:00
parent 3ba52489b3
commit bc2bac7661
14 changed files with 74 additions and 0 deletions

View file

@ -0,0 +1 @@
/home/sechacklabs/.config/systemd/user/firefox-profile@.service

View file

@ -0,0 +1 @@
/home/sechacklabs/.config/systemd/user/firefox-profile@.service

View file

@ -0,0 +1 @@
/home/sechacklabs/.config/systemd/user/icecat-profile@.service

View file

@ -0,0 +1,11 @@
[Unit]
Description=Firefox profile memory cache
[Install]
WantedBy=default.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/home/sechacklabs/.local/bin/firefox-sync %i
ExecStop=/home/sechacklabs/.local/bin/firefox-sync %i

View file

@ -0,0 +1 @@
/home/sechacklabs/.config/systemd/user/rnetworking.timer

13
user/rnetworking.service Normal file
View file

@ -0,0 +1,13 @@
[Unit]
Description=Restart networking services if internet connection not detected
After=network-online.target
[Service]
Type=simple
ExecStart=/home/sechacklabs/.local/bin/rnetworking
TimeoutStopSec=180
KillMode=process
KillSignal=SIGINT
[Install]
WantedBy=multi-user.target

9
user/rnetworking.timer Normal file
View file

@ -0,0 +1,9 @@
[Unit]
Description=Comprobación automatica de servicios de red cada 3 minutos
[Timer]
OnBootSec=3min
OnUnitActiveSec=3min
Unit=rnetworking.service
[Install]
WantedBy=multi-user.target