File: mta-sts-daemon

package info (click to toggle)
postfix-mta-sts-resolver 1.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 536 kB
  • sloc: python: 3,069; sh: 226; makefile: 47
file content (30 lines) | stat: -rw-r--r-- 654 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
#
#

# PROVIDE: mta-sts-daemon
# REQUIRE: LOGIN
# KEYWORD: shutdown

#
# Add the following line to /etc/rc.conf to enable `mta-sts-daemon':
#
# mta_sts_daemon_enable="YES"

. /etc/rc.subr
name="mta_sts_daemon"

rcvar=`set_rcvar`
load_rc_config $name
mta_sts_daemon_enable=${mta_sts_daemon_enable:=NO}

config="/usr/local/etc/postfix/mta-sts-daemon.yml"
log_file="/var/log/mta-sts.log"
log_verbosity="info"
mta_sts_daemon_user="mta-sts"

procname="/usr/local/bin/python3.6"
command="/usr/local/bin/mta-sts-daemon -v ${log_verbosity} -c ${config} -l ${log_file}"
start_cmd="/usr/sbin/daemon -u $mta_sts_daemon_user $command"

run_rc_command "$1"