sonic-buildimage/files/image_config/serial-port-watchdog/serial-port-watchdog.service
Ying Xie bb6ff62a32
[service] introducing serial port watchdog service (#1743)
* [rc.local] refactor platform identification code to separate function

Signed-off-by: Ying Xie <ying.xie@microsoft.com>

* [rc.local] infrastructure to take action according to installer.conf

* [serial port watchdog] add service to watch serial port processes

Monitor serial port processes. Kill ones stuck for too long.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>

* [rc.local] start watchdog on serial port specified by installer.conf

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
2018-05-25 10:52:35 -07:00

13 lines
228 B
Desktop File

[Unit]
Description=Monitor serial port processes, kill stuck ones
Requires=
After=rc.local.Service
[Service]
ExecStart=/usr/bin/serial-port-watchdog.py -t ttyS0
Restart=always
RestartSec=0
[Install]
WantedBy=multi-user.target