aboutsummaryrefslogtreecommitdiffstats
path: root/main/krb5/krb5kdc.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/krb5kdc.initd
parentb383289d2ba7fe0e234b156e6c0c48f7fc0120cb (diff)
downloadaports-cb7d544109b80941b32d6acedb7cc52b2e30fae3.tar.bz2
aports-cb7d544109b80941b32d6acedb7cc52b2e30fae3.tar.xz
main/krb5: moved from testing
Diffstat (limited to 'main/krb5/krb5kdc.initd')
-rw-r--r--main/krb5/krb5kdc.initd24
1 files changed, 24 insertions, 0 deletions
diff --git a/main/krb5/krb5kdc.initd b/main/krb5/krb5kdc.initd
new file mode 100644
index 0000000000..94f1f79379
--- /dev/null
+++ b/main/krb5/krb5kdc.initd
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+
+#---------------------------------------------------------------------------
+# This script starts/stops the MIT Kerberos 5 KDC
+#---------------------------------------------------------------------------
+
+daemon="MIT Kerberos 5 KDC"
+exec="/usr/sbin/krb5kdc"
+
+depend() {
+ 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"
+}