All pastes #896922 Raw Edit

Something

public text v1 · immutable
·published 2008-02-09 01:28 UTC
rendered paste body
[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