Skip to content

Instantly share code, notes, and snippets.

@frojnd
Created April 3, 2020 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frojnd/aded01ea8b959bffd19873b9d1bfed4d to your computer and use it in GitHub Desktop.
Save frojnd/aded01ea8b959bffd19873b9d1bfed4d to your computer and use it in GitHub Desktop.
$ cat /etc/systemd/system/tty-observer.service
[Unit]
Description="Script looks for ttys and starts picocom for each tty"
[Service]
Type=forking
ExecStart=screen -S picocom -d -m /usr/bin/start_picocom.sh
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment