dkimproxy init problem
dkimproxy (.in and .out) refuses to start with the current init scripts:
isolated:~# rc-service dkimproxy.in start
* Starting dkimproxy.in ...
Error: relay host was not specified
Usage:
dkimproxy.in [options] LISTENADDR:PORT RELAYADDR:PORT
smtp options:
--conf_file=FILENAME
--listen=LISTENADDR:PORT
--relay=RELAYADDR:PORT
--reject-error
verification options:
--reject-fail
--hostname=HOSTNAME
daemon options:
--daemonize
--user=USER
--group=GROUP
--pidfile=PIDFILE
dkimproxy.in --help
to see a full description of the various options
* start-stop-daemon: failed to start `/usr/sbin/dkimproxy.in'
* Failed to start dkimproxy.in [ !! ]
* ERROR: dkimproxy.in failed to start
Same problem with dkimproxy.out
/etc/init.d/dkimproxy.in:
#!/sbin/runscript
command="/usr/sbin/${RC_SVCNAME}"
command_args="${OPTS}"
pidfile="/var/run/${RC_SVCNAME}.pid"
description="SMTP proxy that verifies signature on incomming messages"
depend() {
need net
after firewall
}
Replacing the command_args line with
command_args="--conf_file=/etc/dkimproxy/dkimproxy_in.conf --pidfile=/var/run/dkimproxy.in.pid --daemonize"
fixes the problem for me, with both dkimproxy.in and dkimproxy.out:
isolated:~# rc-service dkimproxy.in start
* Caching service dependencies ... [ ok ]
* Starting dkimproxy.in ... [ ok ]
isolated:~#
I’m sure there’s a better way to implement the fix, though. :P
(from redmine: issue id 1474, created on 2012-11-20, closed on 2013-01-18)
- Changesets:
- Revision c372a61b by Francesco Colista on 2013-01-02T10:27:23Z:
testing/dkimproxy: Fixes #1474, bump pkgrel.