Add restart hooks for systemd services

This commit is contained in:
Brainwrecked Tech 2023-01-25 00:10:15 -05:00
parent 5fa0f2f631
commit e42f5d2a9a
20 changed files with 246 additions and 0 deletions

13
restart_cockpit.hook Normal file
View File

@ -0,0 +1,13 @@
# Reload systemd services on package upgrades
[Trigger]
Operation = Upgrade
Type = Package
Target = cockpit
[Action]
Description = Restarting Cockpit socket
Depends = systemd
When = PostTransaction
Exec = /etc/pacman.d/scripts/restart-hook cockpit.socket

13
restart_dbus.hook Normal file
View File

@ -0,0 +1,13 @@
# Reload systemd services on package upgrades
[Trigger]
Operation = Upgrade
Type = Package
Target = dbus
[Action]
Description = Restarting D-Bus socket
Depends = systemd
When = PostTransaction
Exec = /etc/pacman.d/scripts/restart-hook dbus.socket

13
restart_dovecot.hook Normal file
View File

@ -0,0 +1,13 @@
# Reload systemd services on package upgrades
[Trigger]
Operation = Upgrade
Type = Package
Target = dovecot
[Action]
Description = Restarting dovecot service
Depends = systemd
When = PostTransaction
Exec = /etc/pacman.d/scripts/restart-hook dovecot.service

13
restart_fail2ban.hook Normal file
View File

@ -0,0 +1,13 @@
# Reload systemd services on package upgrades
[Trigger]
Operation = Upgrade
Type = Package
Target = fail2ban
[Action]
Description = Restarting Fail2Ban service
Depends = systemd
When = PostTransaction
Exec = /etc/pacman.d/scripts/restart-hook fail2ban.service

13
restart_gitea.hook Normal file
View File

@ -0,0 +1,13 @@
# Reload systemd services on package upgrades
[Trigger]
Operation = Upgrade
Type = Package
Target = gitea
[Action]
Description = Restarting gitea service
Depends = systemd
When = PostTransaction
Exec = /etc/pacman.d/scripts/restart-hook gitea.service

View File

@ -0,0 +1,13 @@
# Reload systemd services on package upgrades
[Trigger]
Operation = Upgrade
Type = Package
Target = gotify-server
[Action]
Description = Restarting gotify service
Depends = systemd
When = PostTransaction
Exec = /etc/pacman.d/scripts/restart-hook gotify-server.service

12
restart_iptables.hook Normal file
View File

@ -0,0 +1,12 @@
# Reload systemd services on package upgrades
[Trigger]
Operation = Upgrade
Type = Package
Target = iptables
[Action]
Description = Restarting IPTables service
Depends = systemd
When = PostTransaction
Exec = /etc/pacman.d/scripts/restart-hook iptables.service

12
restart_mariadb.hook Normal file
View File

@ -0,0 +1,12 @@
# Reload systemd services on package upgrades
[Trigger]
Operation = Upgrade
Type = Package
Target = mariadb
[Action]
Description = Restarting MariaDB service
Depends = systemd
When = PostTransaction
Exec = /etc/pacman.d/scripts/restart-hook mariadb.service

View File

@ -0,0 +1,12 @@
# Reload systemd services on package upgrades
[Trigger]
Operation = Upgrade
Type = Package
Target = networkmanager
[Action]
Description = Restarting NetworkManaager service
Depends = systemd
When = PostTransaction
Exec = /etc/pacman.d/scripts/restart-hook NetworkManager.service

12
restart_nginx.hook Normal file
View File

@ -0,0 +1,12 @@
# Reload systemd services on package upgrades
[Trigger]
Operation = Upgrade
Type = Package
Target = nginx
[Action]
Description = Restarting NGINX service
Depends = systemd
When = PostTransaction
Exec = /etc/pacman.d/scripts/restart-hook nginx.service

12
restart_ntpd.hook Normal file
View File

@ -0,0 +1,12 @@
# Reload systemd services on package upgrades
[Trigger]
Operation = Upgrade
Type = Package
Target = ntpd
[Action]
Description = Restarting NTP service
Depends = systemd
When = PostTransaction
Exec = /etc/pacman.d/scripts/restart-hook ntpd.service

12
restart_packagekit.hook Normal file
View File

@ -0,0 +1,12 @@
# Reload systemd services on package upgrades
[Trigger]
Operation = Upgrade
Type = Package
Target = packagekit
[Action]
Description = Restarting PackageKit service
Depends = systemd
When = PostTransaction
Exec = /etc/pacman.d/scripts/restart-hook packagekit.service

12
restart_pcp.hook Normal file
View File

@ -0,0 +1,12 @@
# Reload systemd services on package upgrades
[Trigger]
Operation = Upgrade
Type = Package
Target = pcp
[Action]
Description = Restarting Performance Co-Pilot services
Depends = systemd
When = PostTransaction
Exec = /etc/pacman.d/scripts/restart-hook pmcd.service pmie.service pmie_farm.service pmlogger.service pmlogger_farm.service

12
restart_php-fpm.hook Normal file
View File

@ -0,0 +1,12 @@
# Reload systemd services on package upgrades
[Trigger]
Operation = Upgrade
Type = Package
Target = php-fpm
[Action]
Description = Restarting PHP FastCGI Process Manager service
Depends = systemd
When = PostTransaction
Exec = /etc/pacman.d/scripts/restart-hook php-fpm.service

12
restart_polkit.hook Normal file
View File

@ -0,0 +1,12 @@
# Reload systemd services on package upgrades
[Trigger]
Operation = Upgrade
Type = Package
Target = polkit
[Action]
Description = Restarting PolicyKit service
Depends = systemd
When = PostTransaction
Exec = /etc/pacman.d/scripts/restart-hook polkit.service

12
restart_postfix.hook Normal file
View File

@ -0,0 +1,12 @@
# Reload systemd services on package upgrades
[Trigger]
Operation = Upgrade
Type = Package
Target = postfix
[Action]
Description = Restarting postfix service
Depends = systemd
When = PostTransaction
Exec = /etc/pacman.d/scripts/restart-hook postfix.service

View File

@ -0,0 +1,12 @@
# Reload systemd services on package upgrades
[Trigger]
Operation = Upgrade
Type = Package
Target = qemu-guest-agent
[Action]
Description = Restarting QEMU Guest Agent service
Depends = systemd
When = PostTransaction
Exec = /etc/pacman.d/scripts/restart-hook qemu-guest-agent.service

12
restart_redis.hook Normal file
View File

@ -0,0 +1,12 @@
# Reload systemd services on package upgrades
[Trigger]
Operation = Upgrade
Type = Package
Target = redis
[Action]
Description = Restarting redis service
Depends = systemd
When = PostTransaction
Exec = /etc/pacman.d/scripts/restart-hook redis.service

12
restart_rspamd.hook Normal file
View File

@ -0,0 +1,12 @@
# Reload systemd services on package upgrades
[Trigger]
Operation = Upgrade
Type = Package
Target = rspamd
[Action]
Description = Restarting rspamd service
Depends = systemd
When = PostTransaction
Exec = /etc/pacman.d/scripts/restart-hook rspamd.service

12
restart_sshd.hook Normal file
View File

@ -0,0 +1,12 @@
# Reload systemd services on package upgrades
[Trigger]
Operation = Upgrade
Type = Package
Target = openssh
[Action]
Description = Restarting OpenSSH service
Depends = systemd
When = PostTransaction
Exec = /etc/pacman.d/scripts/restart-hook sshd.service