summaryrefslogtreecommitdiffstats
path: root/debian/nghttp2-proxy.postinst
blob: a28f72e4198c505e883cc901faf6fb1db378f390 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
set -e

#DEBHELPER#

if [ -x /etc/init.d/nghttpx ]; then
  if [ -f /run/nghttpx.pid ] && pidof /usr/sbin/nghttpx >/dev/null; then
    invoke-rc.d nghttpx upgrade || invoke-rc.d nghttpx restart
    exit $?
  else
    invoke-rc.d nghttpx start || exit $?
  fi
fi

exit 0