sudo: apache restarting a service on CentOS
- by WaveyDavey
I need my web app to restart the dansguardian service (on CentOS) so it needs to run '/sbin/service dansguardian restart'
I have a shellscript in /home/topological called apacherestart.sh which does the following:
#!/bin/sh
id=`id`
/sbin/service dansguardian restart
r=$?
return $r
This runs ok (logger statement in script for testing output to…