Package: autossh
Version: 1.4f-1
Severity: normal

Dear Maintainer,

according to the manpage, sending a SIGTERM or SIGINT to the autossh process is
the way to cleanly shut it down.  However, autossh exits with error code 1 in
these case, indicated something went wrong.  This is caused by the following
line of code: <https://sources.debian.org/src/autossh/1.4f-1/autossh.c/#L502>.
This error code makes systemd consider the autossh unit failed, which makes
sense.  Is there any way tu shut down autossh such that it does not indicate an
error?

Kind regards,
Ralf

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 
'testing-debug'), (100, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.15.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages autossh depends on:
ii  libc6                        2.27-3
ii  openssh-client [ssh-client]  1:7.7p1-2

autossh recommends no packages.

autossh suggests no packages.

-- no debconf information

Reply via email to