Bug#739399: /etc/cron.daily/welcome2l: Failed to open /dev/tty: No such device or address

Robert Luberda robert at debian.org
Sat Jun 20 23:04:48 BST 2015


Damyan Ivanov writes:

Hi,

> 
> I have the following mail from the daily cron:
> 
>   /etc/cron.daily/welcome2l:
>   Failed to open /dev/tty: Няма такова устройство или адрес
> 
> The English translation would be "No such device or address".

I finally managed to reproduce the issue today after upgrading some
older installation and switching it to systemd.

The above `Failed  to open /dev/tty' message is displayed by systemctl,
which for some reason does not like the following re-direction used in
/etc/cron.daily/welcome2l:

  # welcome2l displays the `Login on' line
  # only if stdin is connected to a terminal...
  exec < /dev/console > /dev/null

I will remove the redirection in next upload, but to be honest I'm
really curious why systemctl needs to open /dev/tty. Easier way of
reproducing the issue is
 sudo setsid systemctl restart welcome2l.service > /dev/null


Regards,
robert









More information about the Pkg-systemd-maintainers mailing list