diff options
Diffstat (limited to 'app-crypt/heimdal/files/heimdal-kcm.initd')
-rw-r--r-- | app-crypt/heimdal/files/heimdal-kcm.initd | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/app-crypt/heimdal/files/heimdal-kcm.initd b/app-crypt/heimdal/files/heimdal-kcm.initd new file mode 100644 index 000000000000..9e46d03e4745 --- /dev/null +++ b/app-crypt/heimdal/files/heimdal-kcm.initd @@ -0,0 +1,25 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/heimdal/files/heimdal-kcm.initd,v 1.1 2010/05/09 03:50:52 darkside Exp $ + +depend() { + after heimdal-kdc +} + +start() { + ebegin "Starting Heimdal KCM..." + start-stop-daemon --start --pidfile /var/run/kcm.pid --exec /usr/sbin/kcm -- --detach + eend $? +} + +stop() { + ebegin "Stopping Heimdal KCM..." + start-stop-daemon --stop --pidfile /var/run/kcm.pid + eend $? +} + +restart() { + svc_stop + svc_start +} |