User Tools

Site Tools


linux:initdscript

Super simple init.d script

#!/bin/bash
case "$1" in
  start)
/usr/local/nginx/sbin/nginx
;;
  stop)
killall nginx
;;
  reconfigure)
  kill -HUP `cat /usr/local/nginx/logs/nginx.pid`
;;
esac
linux/initdscript.txt · Last modified: 2015/12/29 20:34 (external edit)