mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-10-30 05:05:13 +08:00
update 2026-05-10 09:48:30
This commit is contained in:
1 parent
95ac96413e
commit
0b362674f1
6244 files changed
+2992248
No files matched your search
@@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -x /etc/init.d/uhttpd ]; then
|
||||
/etc/init.d/uhttpd disable
|
||||
if [ -n "$(pgrep uhttpd)" ]; then
|
||||
/etc/init.d/uhttpd stop
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -x /etc/init.d/nginx ]; then
|
||||
/etc/init.d/nginx disable
|
||||
if [ -n "$(pgrep nginx)" ]; then
|
||||
/etc/init.d/nginx stop
|
||||
fi
|
||||
fi
|
||||
|
||||
/etc/init.d/lighttpd enable
|
||||
if [ -n "$(pgrep lighttpd)" ]; then
|
||||
/etc/init.d/lighttpd restart
|
||||
else
|
||||
/etc/init.d/lighttpd start
|
||||
fi
|
||||
|
||||
|
||||
exit 0
|
||||
Reference in new issue
Block a user