X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=debian%2Fidzebra-2.0-utils.postinst;h=06378fbea346ae5cf2d1719816c2f6a3a8a39737;hb=8c1d8b5e863e1375f9e25c4e11c8443f11c22496;hp=84225c279e4a3f1329214cedb5accab1858ccb93;hpb=9db80121f44ca0cc86ccdc92d773d21ed0ae7144;p=idzebra-moved-to-github.git 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 + +