add config option socket, rework example config and release 1.0.0
This commit is contained in:
@@ -1,14 +1,5 @@
|
||||
# /etc/conf.d/pymodmilter: config file for /etc/init.d/pymodmilter
|
||||
|
||||
# Set the socket used to communicate with the MTA.
|
||||
# Examples:
|
||||
# unix:/path/to/socket a named pipe
|
||||
# inet:8899 listen on ANY interface
|
||||
# inet:8899@localhost listen on a specific interface
|
||||
# inet6:8899 listen on ANY interface
|
||||
# inet6:8899@[2001:db8:1234::1] listen on a specific interface
|
||||
SOCKET="inet:8898@127.0.0.1"
|
||||
|
||||
# Start the daemon as the user. You can optionally append a group name here also.
|
||||
# USER="daemon"
|
||||
# USER="daemon:nobody"
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
user=${USER:-daemon}
|
||||
socket="${SOCKET:-}"
|
||||
milter_opts="${MILTER_OPTS:-}"
|
||||
|
||||
pidfile="/run/${RC_SVCNAME}.pid"
|
||||
command="/usr/bin/pymodmilter"
|
||||
command_args="-s ${socket} ${milter_opts}"
|
||||
command_args="${milter_opts}"
|
||||
command_background=true
|
||||
start_stop_daemon_args="--user ${user}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user