aboutsummaryrefslogtreecommitdiffstats
path: root/main/heimdal/heimdal-kadmind.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-05-17 08:05:48 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-05-17 08:22:40 +0000
commitffae20632af61ef067c268e9666aec7827ae0686 (patch)
treebf51512a35c7066bb1c4458567aee304d27d2e13 /main/heimdal/heimdal-kadmind.initd
parent0d2aba281db8405ddb8b978334ec9c1d841186a5 (diff)
downloadaports-ffae20632af61ef067c268e9666aec7827ae0686.tar.bz2
aports-ffae20632af61ef067c268e9666aec7827ae0686.tar.xz
main/heimdal: use shared krb5-conf package + misc cleanups
- let heimdal-libs depend on krb5-conf - rename init.d script in git repo to .initd and add them to $source (for consistency)
Diffstat (limited to 'main/heimdal/heimdal-kadmind.initd')
-rwxr-xr-xmain/heimdal/heimdal-kadmind.initd24
1 files changed, 24 insertions, 0 deletions
diff --git a/main/heimdal/heimdal-kadmind.initd b/main/heimdal/heimdal-kadmind.initd
new file mode 100755
index 0000000000..b58ac994df
--- /dev/null
+++ b/main/heimdal/heimdal-kadmind.initd
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/heimdal/files/heimdal-kadmind,v 1.3 2004/09/13 22:44:54 solar Exp $
+
+depend() {
+ need net
+ use heimdal-kdc
+ after logger
+}
+
+start() {
+ ebegin "Starting heimdal kadmind"
+ /usr/sbin/kadmind &
+ echo $! > /var/run/heimdal-kadmind.pid
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping heimdal kadmind"
+ start-stop-daemon --stop --quiet --exec \
+ /usr/sbin/kadmind
+ eend $?
+}