✨ Sync 2026-08-07 10:27:26

This commit is contained in:
github-actions[bot] committed 2026-08-07 10:27:26 +08:00
1 parent e5abd5d15c
commit 41eaf923aa
10 files changed
+402 -176

No files matched your search

+2 -2
View File
@@ -10,8 +10,8 @@ include $(TOPDIR)/rules.mk
PKG_ARCH_ghttpd:=$(ARCH)
PKG_NAME:=ghttpd
PKG_VERSION:=0.0.1
PKG_RELEASE:=3
PKG_VERSION:=0.0.2
PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_NAME)-binary-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/Carseason/openwrt-packages/releases/download/prebuilt/
PKG_HASH:=skip
+18
View File
@@ -16,6 +16,13 @@ stop_default_httpd_services() {
done
}
start_default_httpd_services() {
for service in uhttpd nginx; do
[ -x "/etc/init.d/$service" ] || continue
"/etc/init.d/$service" enabled && "/etc/init.d/$service" start
done
}
start_service() {
config_load ghttpd
config_foreach get_config ghttpd
@@ -31,6 +38,17 @@ start_service() {
procd_close_instance
}
stop_service() {
procd_kill "$NAME"
config_load ghttpd
config_foreach get_config ghttpd
start_default_httpd_services
}
service_triggers() {
procd_add_reload_trigger "ghttpd"
}
reload_service() {
restart
}