@Semwize: There's a SIGTERM handler in my fork, but with a twist: it requires "eating" an input event to trigger.
So, technically, yeah, but you'll have to get creative.
Not quite sure how to feed a random event in shell, but evemu can do it, and I happen to ship it in KoboStuff, so forgive me if I don't spend more time on this ;p.
Code:
pkill -TERM miniclock.sh && evemu-event /dev/input/event1 --type EV_KEY --code BTN_TOUCH --value 1 --sync
And then to start it, just run the script in a cmd_spawn:
Code:
exec /usr/local/MiniClock/miniclock.sh
See the telnet example in the NM docs to build a proper toggle out of that.