Skip to content

Instantly share code, notes, and snippets.

@Mnkai
Created November 12, 2017 02:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mnkai/488f0abd7c80d2e87f6d734c23f55a4c to your computer and use it in GitHub Desktop.
Save Mnkai/488f0abd7c80d2e87f6d734c23f55a4c to your computer and use it in GitHub Desktop.
Pacman compatible libalpm hook for stopping mastodon service before transaction
[Trigger]
Operation = Upgrade
Type = Package
Target = imagemagick
Target = ffmpeg
Target = protobuf
Target = nginx
Target = redis
Target = postgresql
Target = nodejs
Target = yarn
Target = ruby
[Action]
Description = Stopping Mastodon before bundle building...
When = PreTransaction
Exec = /usr/bin/systemctl stop 'mastodon-*'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment