secubox-openwrt/package/secubox/secubox-app-gotosocial/files/etc/init.d/gotosocial
CyberMind-FR f20bb1df6b feat(gotosocial): Add GoToSocial Fediverse server packages
Add secubox-app-gotosocial and luci-app-gotosocial for running a lightweight
ActivityPub social network server in LXC container.

Features:
- gotosocialctl CLI with install, start, stop, user management
- LXC container deployment (ARM64)
- HAProxy integration via emancipate command
- UCI configuration for instance, container, proxy, federation settings
- LuCI web interface with overview, users, and settings tabs
- Mesh integration support for auto-federation between SecuBox nodes
- Backup/restore functionality

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-13 13:52:58 +01:00

34 lines
390 B
Bash

#!/bin/sh /etc/rc.common
START=95
STOP=10
USE_PROCD=1
PROG=/usr/sbin/gotosocialctl
start_service() {
local enabled
config_load gotosocial
config_get enabled main enabled '0'
[ "$enabled" = "1" ] || return 0
$PROG start
}
stop_service() {
$PROG stop
}
reload_service() {
$PROG reload
}
service_triggers() {
procd_add_reload_trigger "gotosocial"
}
status() {
$PROG status
}