[Bug 1624967] Re: $TERM is not set for /etc/rc.local
Martin Pitt
martin.pitt at ubuntu.com
Mon Sep 19 06:36:48 UTC 2016
$TERM only gets set for units which have Standard{Output,Error}=tty. By
default services only have a stdout/err pipe to the journal, and rc-
local.service uses journal+console which is still a pipe. So it would be
actively wrong to set $TERM there as it is not actually a terminal. (See
man systemd.exec).
You can create your own unit with Standard{Output,Error}=tty and a
setterm call, of course.
** Changed in: systemd (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1624967
Title:
$TERM is not set for /etc/rc.local
Status in systemd package in Ubuntu:
Invalid
Bug description:
I'm using Ubuntu 16.10 dev with systemd 231-6 and after upgrading from
upstart to systemd I'm noticing that a setterm command fails that I
have put into /etc/rc.local in the past (to make specific settings on
the console without requiring a login). On making a look at this I
figured out that $TERM is not set at default anymore and maybe it
makes sense to set it at default again.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1624967/+subscriptions
More information about the foundations-bugs
mailing list