summarylogtreecommitdiffstats
path: root/zapret2.install
blob: 1a8c98d47b78cd21978f318c41c7f79bcbdc8c11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
_srvname=zapret2.service

post_upgrade() {
  sudo systemctl daemon-reload
  if systemctl is-active --quiet $_srvname; then
    sudo systemctl restart $_srvname
  fi
}

pre_remove() {
  sudo systemctl disable --now $_srvname
}