X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=debian%2Fidzebra-2.0-utils.postinst;h=06378fbea346ae5cf2d1719816c2f6a3a8a39737;hp=84225c279e4a3f1329214cedb5accab1858ccb93;hb=1d5d4f08cb84516d75fcb5e6ed4199b6454cccd6;hpb=2bbf1f29c1033d567e27ab16b72542eaa5b4a36e diff --git a/debian/idzebra-2.0-utils.postinst b/debian/idzebra-2.0-utils.postinst index 84225c2..06378fb 100644 --- a/debian/idzebra-2.0-utils.postinst +++ b/debian/idzebra-2.0-utils.postinst @@ -14,3 +14,13 @@ update-alternatives --quiet --install /usr/bin/zebrasrv zebrasrv \ --slave /usr/share/man/man8/zebrasrv.8.gz zebrasrv.8.gz \ /usr/share/man/man8/zebrasrv-2.0.8.gz +if [ -x "/etc/init.d/zebrasrv" ]; then + update-rc.d zebrasrv defaults >/dev/null + if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then + invoke-rc.d zebrasrv start || exit $? + else + /etc/init.d/zebrasrv start || exit $? + fi +fi + +