mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-30 06:35:13 +08:00
✨ Sync 2026-08-07 10:27:26
This commit is contained in:
1 parent
e5abd5d15c
commit
41eaf923aa
10 files changed
+402
-176
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user