Something
public text v1 · immutable[me@host bin]$ httpon
/home/me/bin/httpon: line 3: /dev/null]: Permission denied
:: Stopping HTTP Daemon [DONE]
:: Starting HTTP Daemon [DONE]
httpon is:
#!/bin/bash
if [! ps -C httpd > /dev/null]; then
sudo /etc/rc.d/httpd start
else
sudo /etc/rc.d/httpd restart
fi