How do I programatically restart a system service(not apache) from apache in linux?
问题 I need to simple way to allow an end user to restart tomcat from a web page served from apache on the same box. We're trying to make it easy for our QC department to deploy a new version of our webapp to apache. We're using samba, but we need an easy way for them to stop / start the tomcat server before/after the deployment. This would only be for internal qc boxes. Is there an existing solution for this? or would it be easier to write a few quick php application to handle this? 回答1: Like