X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=debian%2Fpostinst;h=40d0d5f9f28289d271a43b9dc9c2243a6bc370dd;hb=4127b47cd6603d328e540f4f69f66fad9b303fa7;hp=c954775252a475f06c4914ca6583161b68330385;hpb=5c137b7d6af54fb54dfe13b65c933b5b6a4c764c;p=onak.git diff --git a/debian/postinst b/debian/postinst index c954775..40d0d5f 100644 --- a/debian/postinst +++ b/debian/postinst @@ -51,3 +51,13 @@ if [ "$1" = "configure" ]; then fi #DEBHELPER# + +# +# With the move to systemd this will force systemd to start keyd even if it's +# disabled in the onak config file; the systemd service file can't check the +# way the init script does. Work around this by doing the check here and +# only calling invoke-rc.d if it's actually enabled. +# +if grep -q -E '^use_keyd *(true|yes|1)$' /etc/onak.conf; then + invoke-rc.d onak start || exit $? +fi