aboutsummaryrefslogtreecommitdiffstats
path: root/main/krb5/krb5kadmind.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-04-30 14:33:08 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-04-30 14:33:08 +0000
commitcb7d544109b80941b32d6acedb7cc52b2e30fae3 (patch)
tree5d953c769dc6578ba5abd212fc8f7aee18cade88 /main/krb5/krb5kadmind.initd
parentb383289d2ba7fe0e234b156e6c0c48f7fc0120cb (diff)
downloadaports-cb7d544109b80941b32d6acedb7cc52b2e30fae3.tar.bz2
aports-cb7d544109b80941b32d6acedb7cc52b2e30fae3.tar.xz
main/krb5: moved from testing
Diffstat (limited to 'main/krb5/krb5kadmind.initd')
-rw-r--r--main/krb5/krb5kadmind.initd25
1 files changed, 25 insertions, 0 deletions
diff --git a/main/krb5/krb5kadmind.initd b/main/krb5/krb5kadmind.initd
new file mode 100644
index 0000000000..a1cdfef822
--- /dev/null
+++ b/main/krb5/krb5kadmind.initd
@@ -0,0 +1,25 @@
+#!/sbin/runscript
+
+#---------------------------------------------------------------------------
+# This script starts/stops the MIT Kerberos 5 Admin daemon
+#---------------------------------------------------------------------------
+
+daemon="MIT Kerberos 5 Admin daemon"
+exec="/usr/sbin/kadmind"
+
+depend() {
+ need krb5kdc
+ use net
+}
+
+start() {
+ ebegin "Starting $daemon"
+ start-stop-daemon --start --quiet --exec ${exec} 1>&2
+ eend $? "Error starting $daemon"
+}
+
+stop() {
+ ebegin "Stopping $daemon"
+ start-stop-daemon --stop --quiet --exec ${exec} 1>&2
+ eend $? "Error stopping $daemon"
+}