✨ 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

+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
}