[systemd-bugs] [Bug 90185] New: Trying to unset Standard{Input, Output, Error}= directive to defaults in drop-in fails: Failed to parse {input, output} specifier, ignoring:
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Apr 26 08:53:17 PDT 2015
https://bugs.freedesktop.org/show_bug.cgi?id=90185
Bug ID: 90185
Summary: Trying to unset Standard{Input,Output,Error}=
directive to defaults in drop-in fails: Failed to
parse {input,output} specifier, ignoring:
Product: systemd
Version: unspecified
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: general
Assignee: systemd-bugs at lists.freedesktop.org
Reporter: a.c.kalker at gmail.com
QA Contact: systemd-bugs at lists.freedesktop.org
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.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20150426/24b809ac/attachment.html>
More information about the systemd-bugs
mailing list