summaryrefslogtreecommitdiff
path: root/repo/krb5/krb5kpropd.initd
diff options
context:
space:
mode:
Diffstat (limited to 'repo/krb5/krb5kpropd.initd')
-rw-r--r--repo/krb5/krb5kpropd.initd24
1 files changed, 24 insertions, 0 deletions
diff --git a/repo/krb5/krb5kpropd.initd b/repo/krb5/krb5kpropd.initd
new file mode 100644
index 0000000..75d2f0d
--- /dev/null
+++ b/repo/krb5/krb5kpropd.initd
@@ -0,0 +1,24 @@
+#!/sbin/openrc-run
+
+#---------------------------------------------------------------------------
+# This script starts/stops the MIT Kerberos 5 kpropd
+#---------------------------------------------------------------------------
+
+daemon="MIT Kerberos 5 kpropd"
+exec="/usr/sbin/kpropd"
+
+depend() {
+ use net krb5kdc krb5kadmind
+}
+
+start() {
+ ebegin "Starting $daemon"
+ start-stop-daemon --start --quiet --exec ${exec} -- -S 1>&2
+ eend $? "Error starting $daemon"
+}
+
+stop() {
+ ebegin "Stopping $daemon"
+ start-stop-daemon --stop --quiet --exec ${exec} 1>&2
+ eend $? "Error stopping $daemon"
+}