diff options
4 files changed, 8 insertions, 3 deletions
diff --git a/meta-oe/recipes-connectivity/krb5/krb5/etc/default/krb5-admin-server b/meta-oe/recipes-connectivity/krb5/krb5/etc/default/krb5-admin-server index 283592913..e097353c2 100644 --- a/meta-oe/recipes-connectivity/krb5/krb5/etc/default/krb5-admin-server +++ b/meta-oe/recipes-connectivity/krb5/krb5/etc/default/krb5-admin-server | |||
@@ -1,6 +1,4 @@ | |||
1 | # Automatically generated. If you change anything in this file other than the | 1 | # Automatically generated. If you change anything in this file other than the |
2 | # values of RUN_KADMIND or DAEMON_ARGS, first run dpkg-reconfigure | 2 | # values of DAEMON_ARGS, first run dpkg-reconfigure |
3 | # krb5-admin-server and disable managing the kadmin configuration with | 3 | # krb5-admin-server and disable managing the kadmin configuration with |
4 | # debconf. Otherwise, changes will be overwritten. | 4 | # debconf. Otherwise, changes will be overwritten. |
5 | |||
6 | RUN_KADMIND=true | ||
diff --git a/meta-oe/recipes-connectivity/krb5/krb5/krb5-admin-server.service b/meta-oe/recipes-connectivity/krb5/krb5/krb5-admin-server.service index 1b4271643..21939a1f0 100644 --- a/meta-oe/recipes-connectivity/krb5/krb5/krb5-admin-server.service +++ b/meta-oe/recipes-connectivity/krb5/krb5/krb5-admin-server.service | |||
@@ -7,6 +7,7 @@ ConditionPathExists=/etc/krb5.conf | |||
7 | Type=forking | 7 | Type=forking |
8 | ExecStartPre=/bin/sh -c "test ! -f /var/log/kadmind.log || test ! -x /sbin/restorecon || /sbin/restorecon -F /var/log/kadmind.log" | 8 | ExecStartPre=/bin/sh -c "test ! -f /var/log/kadmind.log || test ! -x /sbin/restorecon || /sbin/restorecon -F /var/log/kadmind.log" |
9 | ExecStart=/usr/sbin/kadmind | 9 | ExecStart=/usr/sbin/kadmind |
10 | EnvironmentFile=-/etc/default/krb5-admin-server | ||
10 | SuccessExitStatus=1 2 SIGKILL | 11 | SuccessExitStatus=1 2 SIGKILL |
11 | TimeoutStopSec=30 | 12 | TimeoutStopSec=30 |
12 | 13 | ||
diff --git a/meta-oe/recipes-connectivity/krb5/krb5/krb5-kdc.service b/meta-oe/recipes-connectivity/krb5/krb5/krb5-kdc.service index d5e5a9579..bf37c45ba 100644 --- a/meta-oe/recipes-connectivity/krb5/krb5/krb5-kdc.service +++ b/meta-oe/recipes-connectivity/krb5/krb5/krb5-kdc.service | |||
@@ -6,6 +6,7 @@ ConditionPathExists=/etc/krb5.conf | |||
6 | [Service] | 6 | [Service] |
7 | Type=forking | 7 | Type=forking |
8 | ExecStart=/usr/sbin/krb5kdc | 8 | ExecStart=/usr/sbin/krb5kdc |
9 | EnvironmentFile=-/etc/default/krb5-kdc | ||
9 | SuccessExitStatus=1 2 SIGKILL | 10 | SuccessExitStatus=1 2 SIGKILL |
10 | TimeoutStopSec=30 | 11 | TimeoutStopSec=30 |
11 | 12 | ||
diff --git a/meta-oe/recipes-connectivity/krb5/krb5_1.16.bb b/meta-oe/recipes-connectivity/krb5/krb5_1.16.bb index ce2134513..f95240f54 100644 --- a/meta-oe/recipes-connectivity/krb5/krb5_1.16.bb +++ b/meta-oe/recipes-connectivity/krb5/krb5_1.16.bb | |||
@@ -78,12 +78,17 @@ do_install_append() { | |||
78 | mkdir -p ${D}/${sysconfdir}/default/volatiles | 78 | mkdir -p ${D}/${sysconfdir}/default/volatiles |
79 | echo "d root root 0755 ${localstatedir}/run/krb5kdc none" \ | 79 | echo "d root root 0755 ${localstatedir}/run/krb5kdc none" \ |
80 | > ${D}${sysconfdir}/default/volatiles/87_krb5 | 80 | > ${D}${sysconfdir}/default/volatiles/87_krb5 |
81 | |||
82 | echo "RUN_KADMIND=true" >> ${D}/${sysconfdir}/default/krb5-admin-server | ||
81 | fi | 83 | fi |
82 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | 84 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then |
83 | install -d ${D}${sysconfdir}/tmpfiles.d | 85 | install -d ${D}${sysconfdir}/tmpfiles.d |
84 | echo "d /run/krb5kdc - - - -" \ | 86 | echo "d /run/krb5kdc - - - -" \ |
85 | > ${D}${sysconfdir}/tmpfiles.d/krb5.conf | 87 | > ${D}${sysconfdir}/tmpfiles.d/krb5.conf |
86 | 88 | ||
89 | mkdir -p ${D}/${sysconfdir}/default | ||
90 | install -m 0644 ${WORKDIR}/etc/default/* ${D}/${sysconfdir}/default | ||
91 | |||
87 | install -d ${D}${systemd_system_unitdir} | 92 | install -d ${D}${systemd_system_unitdir} |
88 | install -m 0644 ${WORKDIR}/krb5-admin-server.service ${D}${systemd_system_unitdir} | 93 | install -m 0644 ${WORKDIR}/krb5-admin-server.service ${D}${systemd_system_unitdir} |
89 | install -m 0644 ${WORKDIR}/krb5-kdc.service ${D}${systemd_system_unitdir} | 94 | install -m 0644 ${WORKDIR}/krb5-kdc.service ${D}${systemd_system_unitdir} |