I have some users on my machine that I allow to run small Mumble voice servers. I would like for them to be able to start/stop their voice server from a website (being ran by Apache). With the current set up, I have each server being run as a different user (the person's specific user account).
What I can't figure out is the best way to start/stop the server without delay. Currently, I have the website make an entry into a database whenever they want to start/stop their service. Then, I have a cron script that runs every minute look in the database for these starts/stops. That cron script will switch to the users account and run the server as that user. My issue with this is that it can take up to around 1 minute for the action to happen.
Is there a more responsive way to accomplish this?
