Skip to content

Commit

Permalink
Merge pull request #9 from Kernel-Error/master
Browse files Browse the repository at this point in the history
Some FreeBSD rc.d improvements
  • Loading branch information
Snawoot authored Mar 28, 2019
2 parents e8b851e + 5d1fba4 commit 10dafa5
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions contrib/mta-sts-daemon
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
#!/bin/sh
#
#

# FreeBSD rc.d script
# PROVIDE: mta-sts-daemon
# REQUIRE: LOGIN
# KEYWORD: shutdown

. /etc/rc.subr
#
# 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`

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"

command_interpreter="/usr/local/bin/python3.6"
command="/usr/local/bin/mta-sts-daemon -c ${config} -l ${log_file}"
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"

0 comments on commit 10dafa5

Please sign in to comment.