File: nghttp2-proxy.postinst

package info (click to toggle)
nghttp2 1.68.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,592 kB
  • sloc: ansic: 104,233; cpp: 55,792; ruby: 30,108; yacc: 7,083; sh: 4,643; makefile: 1,506; python: 806
file content (15 lines) | stat: -rwxr-xr-x 279 bytes parent folder | download | duplicates (4)
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