summaryrefslogtreecommitdiffstats
path: root/_kpropd
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@dahyabhai.net>2013-08-15 00:10:24 -0400
committerNalin Dahyabhai <nalin@dahyabhai.net>2013-08-15 00:10:24 -0400
commitee18500d9bf63fedace5dea8d090156e640e51e3 (patch)
tree17c239766f0816c5dad528dfd1dd4ee4e0d70415 /_kpropd
parent272aaeef1761d45e75a9524ea5e3003d1575f975 (diff)
downloadkrb5-ee18500d9bf63fedace5dea8d090156e640e51e3.tar.gz
krb5-ee18500d9bf63fedace5dea8d090156e640e51e3.tar.xz
krb5-ee18500d9bf63fedace5dea8d090156e640e51e3.zip
Fix error detection when starting kpropd/kadmindkrb5-1.11.3-8.fc20krb5-1.11.3-8.fc19
- drop a patch we're not applying - wrap kadmind and kpropd in scripts which check for the presence/absence of files which dictate particular exit codes before exec'ing the actual binaries, instead of trying to use ConditionPathExists in the unit files to accomplish that, so that we exit with failure properly when what we expect isn't actually in effect on the system (#800343)
Diffstat (limited to '_kpropd')
-rw-r--r--_kpropd10
1 files changed, 10 insertions, 0 deletions
diff --git a/_kpropd b/_kpropd
new file mode 100644
index 0000000..219e41c
--- /dev/null
+++ b/_kpropd
@@ -0,0 +1,10 @@
+#!/bin/sh
+kpropd=/usr/sbin/kpropd
+if ! test -f /var/kerberos/krb5kdc/kpropd.acl ; then
+ echo $"Error. This does not appear to be a slave server, kpropd.acl not found"
+ exit 6
+fi
+if ! test -x "$kpropd" ; then
+ exit 5
+fi
+exec "$kpropd" "$@"