added nginx
This commit is contained in:
1 parent
92e35a72e6
commit
0d2e840d0c
10 files changed
+94
-7
No files matched your search
Executable
+33
@@ -0,0 +1,33 @@
|
||||
#!/bin/sh
|
||||
Green='\033[0;32m'
|
||||
Color_off='\033[0m'
|
||||
Red='\033[0;31m'
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
printf "Starting nginx "
|
||||
nginx
|
||||
if [[ "$?" == "0" ]]; then
|
||||
printf "[$Green OK $Color_off]\n"
|
||||
else
|
||||
printf "[$Red ERR $Color_off]\n"
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
printf "Stopping nginx "
|
||||
nginx -s stop
|
||||
if [[ "$?" == "0" ]]; then
|
||||
printf "[$Green OK $Color_off]\n"
|
||||
else
|
||||
printf "[$Red ERR $Color_off]\n"
|
||||
fi
|
||||
;;
|
||||
restart|reload)
|
||||
"$0" stop
|
||||
"$0" start
|
||||
;;
|
||||
*)
|
||||
echo "nginx init script usage: $0 {start|stop|restart}"
|
||||
return 1
|
||||
esac
|
||||
return $?
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../init.d/telnet
|
||||
File renamed without changes.
Symlink
+1
@@ -0,0 +1 @@
|
||||
../init.d/nginx
|
||||
Reference in new issue
Block a user