Bug#863517: sslh systemd service file doesn't honor /etc/default/sslh

2018-03-03 Thread Guillaume Delacour
Hi,

Le 28/05/2017 à 00:09, Cord Beermann a écrit :
> Package: sslh
> Version: 1.18-1
> Severity: normal
> 
> Hello,
> 
> I want to use sslh.service with the sslh-select option, but in
> /lib/systemd/system/sslh.service is /usr/sbin/sslh hardcoded. 
> 
> It should user the information in /etc/default/sslh instead (or switch over 
> to update-alternatives?)

systemd does not support a variable into ExecStart:

# service sslh status
● sslh.service - SSL/SSH multiplexer
   Loaded: error (Reason: Invalid argument)
[...]
[/lib/systemd/system/sslh.service:8] Executable path is not absolute,
ignoring: $DAEMON --foreground $DAEMON_OPTS

One other way is to wrapp the startup, or use alternative.
I'll look to this.

> 
> Cord
> 
> -- System Information:
> Debian Release: 8.8
>   APT prefers stable
>   APT policy: (999, 'stable'), (799, 'stable-updates'), (798, 
> 'proposed-updates'), (500, 'oldstable'), (299, 'testing'), (199, 'unstable'), 
> (1, 'experimental')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 4.9.0-0.bpo.3-amd64 (SMP w/2 CPU cores)
> Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
> 
> Versions of packages sslh depends on:
> ii  adduser  3.113+nmu3
> ii  debconf  1.5.56
> ii  init-system-helpers  1.22
> ii  libc62.19-18+deb8u9
> ii  libcap2  1:2.24-8
> ii  libconfig9   1.4.9-2
> ii  libwrap0 7.6.q-25
> ii  lsb-base 4.1+Debian13+nmu1
> ii  update-inetd 4.43
> 
> Versions of packages sslh recommends:
> ii  apache2 [httpd]  2.4.10-10+deb8u8
> ii  openssh-server [ssh-server]  1:6.7p1-5+deb8u3
> 
> Versions of packages sslh suggests:
> ii  openbsd-inetd [inet-superserver]  0.20140418-2
> 
> -- debconf information:
> * sslh/inetd_or_standalone: standalone
> 

-- 
Guillaume Delacour



signature.asc
Description: OpenPGP digital signature


Bug#863517: sslh systemd service file doesn't honor /etc/default/sslh

2017-05-27 Thread Cord Beermann
Package: sslh
Version: 1.18-1
Severity: normal

Hello,

I want to use sslh.service with the sslh-select option, but in
/lib/systemd/system/sslh.service is /usr/sbin/sslh hardcoded. 

It should user the information in /etc/default/sslh instead (or switch over to 
update-alternatives?)

Cord

-- System Information:
Debian Release: 8.8
  APT prefers stable
  APT policy: (999, 'stable'), (799, 'stable-updates'), (798, 
'proposed-updates'), (500, 'oldstable'), (299, 'testing'), (199, 'unstable'), 
(1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-0.bpo.3-amd64 (SMP w/2 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages sslh depends on:
ii  adduser  3.113+nmu3
ii  debconf  1.5.56
ii  init-system-helpers  1.22
ii  libc62.19-18+deb8u9
ii  libcap2  1:2.24-8
ii  libconfig9   1.4.9-2
ii  libwrap0 7.6.q-25
ii  lsb-base 4.1+Debian13+nmu1
ii  update-inetd 4.43

Versions of packages sslh recommends:
ii  apache2 [httpd]  2.4.10-10+deb8u8
ii  openssh-server [ssh-server]  1:6.7p1-5+deb8u3

Versions of packages sslh suggests:
ii  openbsd-inetd [inet-superserver]  0.20140418-2

-- debconf information:
* sslh/inetd_or_standalone: standalone