<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Trying to unset Standard{Input,Output,Error}= directive to defaults in drop-in fails: Failed to parse {input,output} specifier, ignoring:"
href="https://bugs.freedesktop.org/show_bug.cgi?id=90185">90185</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Trying to unset Standard{Input,Output,Error}= directive to defaults in drop-in fails: Failed to parse {input,output} specifier, ignoring:
</td>
</tr>
<tr>
<th>Product</th>
<td>systemd
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Assignee</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>a.c.kalker@gmail.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>Steps to reproduce:
- Create a drop-in file to override StandardInput= StandardOutput=
StandardError= as set in a service and restore them to their default values.
Example (here I'm trying to debug why keyboard doesn't work in emergency mode,
not the best example, I know...):
---[/etc/systemd/system/emergency.service.d/debug.conf]---
[Service]
# Clear ExecStartPre=
ExecStartPre=
# Are the tty,std{in,out,error} devices there?
ExecStartPre=-/usr/bin/ls -la /dev
ExecStartPre=-/bin/echo -e 'Welcome to emergency mode! After logging in, type
"journalctl -xb" to view\\nsystem logs, "systemctl reboot" to reboot,
"systemctl default" or ^D to\\ntry again to boot into default mode.'
# Clear these out to defaults, see what happens...
# StandardInput=tty-force
StandardInput=
# StandardOutput=inherit
StandardOutput=
# StandardError=inherit
StandardError=
# Don't know about the next one, don't touch it for now
# IgnoreSIGPIPE=no
Actual result:
[ 0.506012] systemd[1]:
[/etc/systemd/system/emergency.service.d/debug.conf:10] Failed to parse input
specifier, ignoring:
[ 0.506865] systemd[1]:
[/etc/systemd/system/emergency.service.d/debug.conf:12] Failed to parse output
specifier, ignoring:
[ 0.507699] systemd[1]:
[/etc/systemd/system/emergency.service.d/debug.conf:14] Failed to parse output
specifier, ignoring:
Expected result:
Setting these directives to the empty value in a drop-in should set them to
their default values.
Requiring users to explicitly specify that default value is IMHO not a good
option, as that default might change over the course of the development of
systemd. There should always be a way for drop-ins to 'undo' setting a
directive done by a service, no matter what it is.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>