Scripts to start and stop services

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux