File: dpm-postgres-nameserver.postinst

package info (click to toggle)
dpm-postgres 1.7.4.7-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 13,788 kB
  • ctags: 10,782
  • sloc: ansic: 146,136; sh: 13,362; perl: 11,142; python: 5,529; cpp: 5,113; sql: 1,790; makefile: 955; fortran: 113
file content (33 lines) | stat: -rw-r--r-- 1,165 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh

set -e

chown dpmmgr:dpmmgr /var/log/dpns

update-alternatives --install /usr/sbin/dpnsdaemon dpnsdaemon \
          /usr/lib/dpm-postgres/dpnsdaemon 10 \
  --slave /usr/share/man/man8/dpnsdaemon.8.gz dpnsdaemon.8.gz \
          /usr/lib/dpm-postgres/dpnsdaemon.8.gz \
  --slave /usr/share/dpm/DPNSCONFIG.templ DPNSCONFIG.templ \
          /usr/lib/dpm-postgres/DPNSCONFIG.templ \
  --slave /etc/init.d/dpnsdaemon dpnsdaemon.init \
          /etc/dpm-postgres/dpnsdaemon.init \
  --slave /etc/default/dpnsdaemon dpnsdaemon.conf \
          /etc/dpm-postgres/dpnsdaemon.conf \
  --slave /etc/logrotate.d/dpnsdaemon dpnsdaemon.logrotate \
          /etc/dpm-postgres/dpnsdaemon.logrotate \
  --slave /usr/sbin/dpns-shutdown dpns-shutdown \
          /usr/lib/dpm-postgres/dpns-shutdown \
  --slave /usr/share/man/man8/dpns-shutdown.8.gz dpns-shutdown.8.gz \
          /usr/lib/dpm-postgres/dpns-shutdown.8.gz

if [ -x "/etc/init.d/dpnsdaemon" ]; then
	update-rc.d dpnsdaemon defaults >/dev/null
	if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
		invoke-rc.d dpnsdaemon start || exit $?
	else
		/etc/init.d/dpnsdaemon start || exit $?
	fi
fi

#DEBHELPER#