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#
|