python - terminate script of another user -


On the Linux box I get a Python script that always starts with the predefined user. It may take some time to finish it, so I want to block other users from the web.

Operation is not allowed to use kill with the permission.

Can I somehow modify my long running dragon script to get a signal from another user? Obviously, another user is the one who starts a web server.

There can be a completely different way of dealing with this problem, I can not think right now.

If you are on your server (which seems reasonable) (below the page below Unix daemon) You set your dragon script to run in the form, and you give Apache user permissions to execute the init.d script for the service, then you can control this service from php code in the same manner (from this The service script name is 'otto2'):

   

is the 'really recommended code' on that note :)


Comments