github.com/choria-io/go-choria@v0.28.1-0.20240416190746-b3bf9c7d5a45/packager/templates/debian/generic/prerm (about)

     1  #!/bin/sh
     2  
     3  action="$1"
     4  
     5  if [ "$action" = remove ]; then
     6  	systemctl --no-reload disable choria-server.service choria-broker.service
     7  	systemctl stop choria-server.service choria-broker.service
     8  fi