summaryrefslogtreecommitdiff
blob: 12ed1a6cc7c7a5b7c403416cb4c067468b738d47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

start() {
	ebegin "Starting midentd"
	/usr/sbin/midentd ${MIDENTD_OPTS}
	eend $?
}

stop() {
	ebegin "Stopping midentd"
	start-stop-daemon --stop --quiet --pidfile /var/run/midentd.pid
	local ret=$?
	rm -f /var/run/midentd.pid
	eend ${ret}
}