File: nghttp2-proxy.postinst

package info (click to toggle)
nghttp2 1.64.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,844 kB
  • sloc: cpp: 55,820; ansic: 52,049; python: 2,927; makefile: 1,371; sh: 200; ruby: 66; lisp: 2
file content (15 lines) | stat: -rwxr-xr-x 279 bytes parent folder | download | duplicates (3)
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