I'm trying to force a system to have only one getty, on tty1, but i'm hitting some road blocks.
This is the promise right now:
processes:
"getty (/dev/tty[2-9])"
process_stop => "/sbin/initctl stop tty TTY=$(match.1)",
comment => "Process getty $(match.1) should be stopped";
The problem is that initctl is being called with the text "$(match.1)" instead of, for example, "/dev/tty5". The getty HAS to be stopped with this command, killing it will only get it restarted by the init system.
Any ideas?