Changeset View
Changeset View
Standalone View
Standalone View
mail/slimta/files/slimta.in
- This file was added.
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
#!/bin/sh | |||||
# | |||||
# $FreeBSD$ | |||||
# | |||||
# PROVIDE: slimta | |||||
# REQUIRE: DAEMON FILESYSTEMS NETWORKING | |||||
# KEYWORD: shutdown | |||||
# | |||||
# Add the following lines to /etc/rc.conf to enable slimta. | |||||
# | |||||
#slimta_enable="YES" | |||||
0mp: Missing space. | |||||
. /etc/rc.subr | |||||
name="slimta" | |||||
rcvar="slimta_enable" | |||||
load_rc_config $name | |||||
: ${slimta_enable:="NO"} | |||||
: ${slimta_conf:="%%PREFIX%%/etc/slimta/slimta.yaml"} | |||||
command="%%PREFIX%%/bin/slimta" | |||||
pidfile=/var/run/${name}.pid | |||||
start_cmd="slimta_start" | |||||
slimta_start() | |||||
{ | |||||
check_startmsgs && echo "Starting ${name}." | |||||
/usr/sbin/daemon \ | |||||
-p ${pidfile} \ | |||||
${command} -c ${slimta_conf} | |||||
} | |||||
Done Inline ActionsIt could be that you'd be fine with: procname="%%PREFIX%%/bin/slimta" command="/usr/sbin/daemon" command_args="-p $pidfile $procname -c $slimta_conf" 0mp: It could be that you'd be fine with:
```
procname="%%PREFIX%%/bin/slimta"… | |||||
run_rc_command "$1" | |||||
Not Done Inline ActionsWould pkill -F ${pidfile} also work? 0mp: Would `pkill -F ${pidfile}` also work? | |||||
Not Done Inline ActionsThe rc service should support stopping the service if it is not enabled, e.g., when a user issues service slimta onestop. 0mp: The rc service should support stopping the service if it is not enabled, e.g., when a user… |
Missing space.