Add restart hooks for systemd services

master
Brainwrecked Tech 2 years ago
parent 5fa0f2f631
commit e42f5d2a9a

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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
Loading…
Cancel
Save