by gschoppe » Tue Aug 06, 2013 5:21 pm
i have almost solved the problem. I created this service file:
$this->bbcode_second_pass_code('', '
[Unit]
After=default.target
[Service]
ExecStart=/usr/bin/python /root/pidora-keyboard.py
[Install]
WantedBy=default.target
')
and run:
$this->bbcode_second_pass_code('', 'systemctl start servicename')
The system loads the script, and I can accurately capture input, as wanted.
However, the terminal never returns to a prompt. It acts like the start process never completes.
If I do a ctrl-z to force quit, it exits, and I continue to capture input as needed, but I'd really like the service to exit properly.