Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
while [ 1 ]
do
if [ ! -e "$1" ]
then echo "" > $1
fi
sleep 1s
done
@kmorey
kmorey / nginx
Created January 30, 2009 16:36
init.d script to control nginx server. (modified from apache init.d script)
#!/bin/bash
#
# nginx Startup script for nginx server
#
# chkconfig: - 85 15
# description: nginx is a World Wide Web server. It is used to serve \
# HTML files and CGI.
# processname: nginx
# config: /etc/httpd/conf/nginx.conf
# config: /etc/sysconfig/nginx