FS#75202 - [emby-server] Add pacman hook to restart when upgrade

Attached to Project: Community Packages
Opened by Juan Simón (j1simon) - Thursday, 30 June 2022, 15:48 GMT
Last edited by Maxime Gauduin (Alucryd) - Monday, 25 July 2022, 08:32 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Maxime Gauduin (Alucryd)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I've copied this pacman hook to restart emby-server when upgrade:

/etc/pacman.d/hooks/embyserver.hook:
# Copy, move or symlink this file in /etc/pacman.d/hooks to force a restart when emby is updated.

[Trigger]
Operation = Upgrade
Type = Package
Target = emby-server

[Action]
Description = Restarting Emby Server...
When = PostTransaction
Exec = /usr/bin/systemctl try-restart emby-server.service

It would be nice if this file could be included in the package so that (whoever wants and needs it) can copy it to activate it.

This task depends upon

Closed by  Maxime Gauduin (Alucryd)
Monday, 25 July 2022, 08:32 GMT
Reason for closing:  Won't implement
Comment by Toolybird (Toolybird) - Wednesday, 20 July 2022, 08:11 GMT
I don't think we normally include hooks to restart random daemons? This probably fits into the "System Maintenance" [1] category and is likely better suited to the Wiki or AUR. I'll defer to the PM because doubt :(

[1] https://wiki.archlinux.org/title/System_maintenance#Restart_or_reboot_after_upgrades
Comment by Maxime Gauduin (Alucryd) - Monday, 25 July 2022, 08:32 GMT
We don't indeed. Unlike some distros, we don't manipulate services, this is left to the user's discretion.

Loading...