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

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}
}