Skip to content

Instantly share code, notes, and snippets.

@tonyc726
tonyc726 / nginx
Created February 25, 2017 10:52 — forked from vdel26/nginx
Openresty init.d script
#!/bin/sh
#
# chkconfig: 2345 55 25
# Description: Nginx init.d script, put in /etc/init.d, chmod +x /etc/init.d/nginx
# For Debian, run: update-rc.d -f nginx defaults
# For CentOS, run: chkconfig --add nginx
#
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $all
# remove node_modules in floder
find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +
# rename
rename -d "Typescript" ./