Re: Getting a serial console to work on Jessie
Stephen Powell <firstname.lastname@example.org> wrote:
> Well, Sven, that's a nice idea, but I can't get it to work for me in this
> situation. I issued
> systemctl edit serial-getty@ttyS0.service
> and placed the following two lines into the file:
> ExecStart=-/sbin/agetty -8 --noclear %I 38400 ibm3151
> But when I restart the service, I get the following error:
> systemd: 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?
You have to first clear the old ExecStart and then set a new one:
| As another example, in order to replace the ExecStart directive for a unit
| that is not of type oneshot, create the following file:
| | /etc/systemd/system/unit.d/customexec.conf
| | [Service]
| | ExecStart=
| | ExecStart=new command
Yes, this is a bit counterintuitive.
So, in your case, the config file should look like this:
| ExecStart=-/sbin/agetty -8 --noclear %I 38400 ibm3151
Sigmentation fault. Core dumped.