[tryton-debian] Bug#803066: tryton-server: problem with init scripts and "$DAEMON_OPTS" as set in /etc/default/tryton-server

Raphaël Hertzog hertzog at debian.org
Mon Oct 26 14:56:24 UTC 2015


Source: tryton-server
Version: 3.6.3-2
Severity: important

I'm not quite sure how this happened but I just upgraded from 3.4 to 3.6
on a wheezy server and /etc/default/tryton-server contained this:
DAEMON_OPTS=" --config ${CONFIGFILE} --logconf ${LOGCONF} --cron"

Note the initial space. With the init script provided in the package,
this DAEMON_OPTS does not work at all... the init script and
start-stop-daemon both ensure that the initial space is kept around.
The init scripts does it due to having quotes around "$DAEMON_OPTS" in
the start-stop-daemon invocation.

And the result is this failure:
trytond: error: unrecognized arguments:  --config /etc/tryton/trytond.conf --logconf /etc/tryton/trytond_log.conf --cron

Worse than everything, you only see that error when you strace the init
script because it's all hidden with the --background option.

This does not affect systemd users but all your backports for wheezy users
are likely broken. I suggest gettind rid of the initial space and of the
double quotes in the init script.

Cheers,

-- System Information:
Debian Release: stretch/sid
  APT prefers squeeze-lts
  APT policy: (500, 'squeeze-lts'), (500, 'oldoldstable'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)



More information about the tryton-debian mailing list