Hide Forgot
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.
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.
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).