Am 06.09.2015 um 21:04 schrieb Stephen Powell: > [Service] > ExecStart=-/sbin/agetty -8 --noclear %I 38400 ibm3151 > > But when I restart the service, I get the following error: > > systemd[1]: serial-getty@ttyS0.service: Service has more than one ExecStart= setting, which is only allowed for Type=oneshot services. Refusing. > > I want to override "ExecStart", not add a new one. What am I doing wrong? By default, systemd will simply merge all drop-ins. In your case, ExecStart is a setting which can not be specified more then once. So you need to "clear" it first. The following should do the trick: [Service] ExecStart= ExecStart=-/sbin/agetty -8 --noclear %I 38400 ibm3151 The "ExecStart=" resets the existing setting. See also man 5 systemd.unit , "Example 2. Overriding vendor settings": > Note that for drop-in files, if one wants to remove entries from a setting that is > parsed as a list (and is not a dependency), such as ConditionPathExists= (or e.g. > ExecStart= in service units), one needs to first clear the list before re-adding all > entries except the one that is to be removed. See below for an example. Cheers, Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
Attachment:
signature.asc
Description: OpenPGP digital signature