Bug 1378590 - Incorrect example in systemd documentation
Summary: Incorrect example in systemd documentation
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: doc-System_Administrators_Guide
Version: 7.2
Hardware: All
OS: Linux
high
medium
Target Milestone: rc
: ---
Assignee: Maxim Svistunov
QA Contact: ecs-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-22 20:06 UTC by Paulo Andrade
Modified: 2020-01-17 15:57 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-11 08:08:08 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Paulo Andrade 2016-09-22 20:06:34 UTC
Document URL: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/sect-Managing_Services_with_systemd-Unit_Files.html#Overriding_Unit_Mod-Change-timout-limit

Describe the issue:
Documentation says the command to change the default is:
echo '[Service] TimeoutStartSec=10' > /etc/systemd/system/network.service.d/timeout.conf
but the parser will not understand it, must add a newline.
Correct command would be:
echo '[Service]\nTimeoutStartSec=10' > /etc/systemd/system/network.service.d/timeout.conf

The problem is present for all translations.

Comment 3 Paulo Andrade 2016-09-23 12:17:46 UTC
  Bad cut&paste, please note that the correct example
would be:

echo -e '[Service]\nTimeoutStartSec=10' > /etc/systemd/system/network.service.d/timeout.conf

otherwise the "\n" would not be correctly handled.

Comment 4 Paulo Andrade 2016-09-27 15:10:53 UTC
  There is also a typo in the title

"Changing the timout limit"

and another issue is that the documentation tells that
the default timeout is 5min. A 5min timeout is default
for sysv wrapped/compat services. Systemd managed services
default to 90s timeout, so the documentation should be
update to tell the default is 90s, but have a note about
the sysv compat services that have a default of 5min
(that are very few in rhel7, but "network" is the most
notable).


Note You need to log in before you can comment on or make changes to this bug.