summaryrefslogtreecommitdiff
path: root/mail-filter/sigh/files/sigh.initd
blob: 8fe64679bab10a59cd4658fbcc8b41934863556e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

PIDDIR="/run/${SVCNAME}"

description="Sigh is a milter that signs emails with S/MIME"
name="S/MIME signing milter"
pidfile="${PIDDIR}/${SVCNAME}.pid"
command="/usr/sbin/sigh"
command_args="-p ${pidfile} ${OPTIONS}"
retry="30"

depend() {
	need localmount net
	use mta logger
}

start_pre() {
	checkpath -q -d -o sigh:sigh -m 0755 "${PIDDIR}" || return 1
}