I develop an app called Unity Mail. A quicklist option «Edit accounts data» needs to restart it.
#!/bin/sh python /usr/share/unity-mail/unity-mail.py $@
(Main python script)
When I try to terminate the script using
killall unity-mail, the unity-mail process is killed, but python process is still running, so unity-mail is active.
I tried to put the python script directly to /usr/bin/unity-mail, but calling
killall unity-mail in that case says «unity-mail: no process found».
How should I modify /usr/bin/unity-mail so that killing it will kill python also?