Jeremy Kerr | 49208ee | 2016-03-17 17:35:27 +0800 | [diff] [blame] | 1 | [Unit] |
Brad Bishop | f51b3a0 | 2016-08-25 22:41:39 -0400 | [diff] [blame] | 2 | Description=Phosphor Console Muxer |
Patrick Williams | b80a481 | 2016-09-16 16:10:20 -0500 | [diff] [blame] | 3 | BindsTo=dev-ttyVUART0.device |
| 4 | After=dev-ttyVUART0.device |
Jeremy Kerr | 49208ee | 2016-03-17 17:35:27 +0800 | [diff] [blame] | 5 | |
| 6 | [Service] |
Patrick Williams | b80a481 | 2016-09-16 16:10:20 -0500 | [diff] [blame] | 7 | # TODO: openbmc/obmc-console#5 - Restore this to 'obmc-console-server ttyVUART0' |
| 8 | ExecStart=/bin/sh -c 'realpath /dev/ttyVUART0 | xargs basename | xargs {sbindir}/obmc-console-server' |
Jeremy Kerr | 49208ee | 2016-03-17 17:35:27 +0800 | [diff] [blame] | 9 | Restart=always |
| 10 | |
| 11 | [Install] |
Brad Bishop | c2e93ce | 2016-08-25 22:36:30 -0400 | [diff] [blame] | 12 | WantedBy={SYSTEMD_DEFAULT_TARGET} |