İllaki birşey yazmasını istiyorsanız,
service httpd stop
service httpd restart
yazın.
Onurss arkadaşıma katılıyorum illa uyarı almak istiyorsan şunu kullanabilirsin
pico /usr/bin/apacheRestart
içeriğine
#!/bin/bash
service httpd stop
if [ "`service httpd status | grep -v grep | grep "Server uptime" | cut -c4`" = "S" ];then
echo -e "\e[0;31m Apache Durdurulamadı \e[0m"
exit
else
echo -e "Apache Durumu : \e[0;31m Durduruldu\e[0m"
fi
service httpd start
if [ "`service httpd status | grep -v grep | grep "Server uptime" | cut -c4`" = "S" ];then
echo -e "Apache Durumu : \e[0;32m Yeniden Başlatıldı\e[0m"
fi
yazıp kaydedip çık
chmod 750 /usr/bin/apacheRestart
daha sonra apacheRestart yaparak restart atabilirsin
Umarım tam anlamıyla istediğin gibi olmuştur.