Scripts to start and stop services

Dotan Cohen dotancohen at gmail.com
Mon Sep 12 13:35:06 UTC 2005


I often need to start/stop sendmail, mysql, and apache at once. I
tried making a script with this contents:
#!/bin/sh
/sbin/service sendmail start
/sbin/service httpd start

I put it in ~/bin and chmod 777 it. But I get permission denied when I
try to run it because I am not root. I understand that I need sudo but
I have no idea what to do. Anybody?

Thanks.

Dotan
http://lyricslist.com/lyrics/artist_albums/299/krauss_alison.php
Krauss, Alison Song Lyrics




More information about the fedora-list mailing list