Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A script to restart Apache after power failure in 10.2' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to restart Apache after power failure in 10.2
Authored by: goatbar on Mar 08, '05 01:06:35PM

This would be a good place for using sudo to allow a user to run apachectl with out a passwd (sudoers keyword - NOPASSWD). They you are not saving your password cleartext to somewhere on your disk. Then the applescript would just need "sudo" in front of /usr/sbin/apachectl

man sudoers for more info on the sudo config file and remember to user visudo to edit the sudoers

-kurt



[ Reply to This | # ]