projects/aports·blob master · refs

24 lines · 534 B

1#!/sbin/openrc-run
2# Copyright 1999-2004 Gentoo Foundation
3# Distributed under the terms of the GNU General Public License v2
4# $Header: /var/cvsroot/gentoo-x86/app-crypt/heimdal/files/heimdal-kadmind,v 1.3 2004/09/13 22:44:54 solar Exp $
5
6depend() {
7 need net
8 use heimdal-kdc
9 after logger
10}
11
12start() {
13 ebegin "Starting heimdal kadmind"
14 /usr/sbin/kadmind &
15 echo $! > /var/run/heimdal-kadmind.pid
16 eend $?
17}
18
19stop() {
20 ebegin "Stopping heimdal kadmind"
21 start-stop-daemon --stop --quiet --exec \
22 /usr/sbin/kadmind
23 eend $?
24}