Skip to content

Instantly share code, notes, and snippets.

@maxlapshin
Created March 26, 2023 19:08
Show Gist options
  • Save maxlapshin/270039bc23fc93cc72945ce5c03f5f60 to your computer and use it in GitHub Desktop.
Save maxlapshin/270039bc23fc93cc72945ce5c03f5f60 to your computer and use it in GitHub Desktop.
[Unit]
Description=WFB-CLI on tty1
After=getty.target
Conflicts=getty@tty1.service
[Service]
Type=simple
ExecStart=/usr/bin/wfb-cli gs
ExecStop=/bin/kill -HUP ${MAINPID}
StandardInput=tty-force
StandardOutput=inherit
StandardError=inherit
TTYPath=/dev/tty1
Restart=always
RestartSec=2
[Install]
WantedBy=getty.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment