22 lines
440 B
Plaintext
22 lines
440 B
Plaintext
|
#!/sbin/openrc-run
|
||
|
# Copyright 1999-2019 Gentoo Authors
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
depend() {
|
||
|
before mta
|
||
|
provide postfix_greylist
|
||
|
}
|
||
|
|
||
|
start() {
|
||
|
ebegin "Starting policyd"
|
||
|
start-stop-daemon --name policyd --start --quiet --exec /usr/sbin/policyd \
|
||
|
-- -c ${POLICYD_CONFIG}
|
||
|
eend $?
|
||
|
}
|
||
|
|
||
|
stop() {
|
||
|
ebegin "Stopping policyd"
|
||
|
start-stop-daemon --stop --quiet --pidfile /var/run/policyd.pid
|
||
|
eend $?
|
||
|
}
|