I woud like run a application by initctl.
I wrote the next scipt:
# MNT runner
start on runlevel 2
stop on shutdown
exec su -s /bin/bash -c "/home/tech/mnt/mntII /home/tech/mnt/live.cfg >> /home/tech/mnt/mnt.log 2>&1" mnt
If I use the "sudo initctl stop mnt" command, the state will be stoped, but a mntII process runs forward.
How can I run an application with different user such as root?