[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Getting a serial console to work on Jessie



Am 01.09.2015 um 19:31 schrieb David Parker:
> Thanks, Michael!  That was indeed the problem.  I
> copied /lib/systemd/system/serial-getty@.service to /etc/systemd/system,
> edited it to use the correct baud rate and terminal type, and then ran
> "systsystemctl start serial-getty@ttyS0.service" and it worked like a charm.

Glad we could solve your problem this easily.

As for overriding the system provided service files, I usually recommend
to use drop-ins, i.e. creating a
/etc/systemd/system/foo.service.d/my_custom_config.conf
This way you only need to override what you are actually interested in.

You can use drop-ins for template files itself or for instances itself:

/etc/systemd/system/serial-getty@.service.d/my_stuff.conf
-> will apply to all instances of serial-getty@

/etc/systemd/system/serial-getty@ttyS0.service.d/my_stuff.conf
-> only applies to serial-getty@ttyS0.service.d

> Guess I need to get with the times and learn systemd!

Welcome!

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


Reply to: