secubox-openwrt/package/secubox/secubox-app-cyberfeed/files/etc/init.d/cyberfeed
CyberMind-FR 0be687b89b feat(hexojs): Add Build & Publish LuCI interface for Gitea workflow
- Add publish_to_www RPCD method to publish static files to /www/blog
- Add Build & Publish card in sync.js with configurable publish path
- Add generate RPC call for building site
- Fix file permissions for all RPCD scripts and init.d scripts
- Bump luci-app-hexojs to 1.0.0-r3

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 16:18:40 +01:00

39 lines
638 B
Bash
Executable File

#!/bin/sh /etc/rc.common
# CyberFeed init script
START=95
STOP=10
USE_PROCD=1
PROG=/usr/bin/cyberfeed
start_service() {
local enabled
config_load cyberfeed
config_get enabled main enabled 0
[ "$enabled" = "1" ] || return 0
# Create directories
mkdir -p /tmp/cyberfeed/cache /tmp/cyberfeed/output
# Create web symlink
[ -L /www/cyberfeed/index.html ] || ln -sf /tmp/cyberfeed/output/index.html /www/cyberfeed/index.html 2>/dev/null
# Run initial sync
$PROG sync &
}
stop_service() {
# Nothing to stop - runs via cron
:
}
reload_service() {
$PROG sync &
}
service_triggers() {
procd_add_reload_trigger "cyberfeed"
}