secubox-openwrt/package/secubox/secubox-app-hexojs/files/etc/init.d/hexojs
CyberMind-FR a4970edc6f feat(hexojs): Add Hexo CMS packages for OpenWrt
- secubox-app-hexojs: LXC-containerized Hexo service with Node.js
  - hexoctl control script for container/site management
  - Bundled CyberMind theme with dark/light mode
  - Theme presets (minimal, tech, portfolio)
  - Post/page scaffolds

- luci-app-hexojs: Full CMS dashboard
  - Overview with stats and quick actions
  - Post editor with Markdown toolbar and preview
  - Media library browser
  - Categories and tags management
  - Apps portfolio for CyberMind theme
  - Build and deploy to GitHub Pages
  - GitHub Sync wizard (clone, pull, push)
  - Theme configuration and presets
  - Site settings

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 18:58:57 +01:00

40 lines
640 B
Bash

#!/bin/sh /etc/rc.common
# SecuBox Hexo CMS Service
# Copyright (C) 2025 CyberMind.fr
START=95
STOP=10
USE_PROCD=1
NAME="hexojs"
PROG="/usr/sbin/hexoctl"
start_service() {
local enabled
config_load hexojs
config_get enabled main enabled '0'
[ "$enabled" = "1" ] || return 0
procd_open_instance
procd_set_param command "$PROG" service-run
procd_set_param respawn 3600 5 0
procd_set_param stdout 1
procd_set_param stderr 1
procd_set_param pidfile /var/run/hexojs.pid
procd_close_instance
}
stop_service() {
"$PROG" service-stop
}
reload_service() {
stop
start
}
service_triggers() {
procd_add_reload_trigger "hexojs"
}