mirror of
https://github.com/edu4rdshl/linuxscripts.git
synced 2026-07-17 23:24:52 +00:00
Use systemd-user-units as folder for user units services
This commit is contained in:
parent
3ba52489b3
commit
bc2bac7661
14 changed files with 74 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
/home/sechacklabs/.config/systemd/user/firefox-profile@.service
|
||||
|
|
@ -0,0 +1 @@
|
|||
/home/sechacklabs/.config/systemd/user/firefox-profile@.service
|
||||
|
|
@ -0,0 +1 @@
|
|||
/home/sechacklabs/.config/systemd/user/icecat-profile@.service
|
||||
11
user/firefox-profile@.service
Normal file
11
user/firefox-profile@.service
Normal 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
|
||||
1
user/multi-user.target.wants/rnetworking.timer
Symbolic link
1
user/multi-user.target.wants/rnetworking.timer
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
/home/sechacklabs/.config/systemd/user/rnetworking.timer
|
||||
13
user/rnetworking.service
Normal file
13
user/rnetworking.service
Normal 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
9
user/rnetworking.timer
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue