Installation aktualisiert

michael 2025-09-02 21:21:17 +02:00
parent 7d5419f0de
commit eff6fd083a

@ -327,29 +327,19 @@ sudo -u furt /usr/local/share/furt/scripts/start.sh
### 6. Service-Integration ### 6. Service-Integration
**OpenBSD rc.d-Script** - `/etc/rc.d/furt`: **OpenBSD rc.d-Script aus Repository-Template:**
```bash
#!/bin/ksh
daemon="/usr/local/share/furt/scripts/start.sh"
daemon_user="_furt"
daemon_cwd="/usr/local/share/furt"
daemon_flags="start"
. /etc/rc.d/rc.subr
pexp="lua.*src/main.lua"
rc_cmd $1
```
```bash ```bash
# Template aus Repository verwenden
cp deployment/openbsd/rc.d-furt /etc/rc.d/furt
chmod +x /etc/rc.d/furt chmod +x /etc/rc.d/furt
echo "furt_flags=" >> /etc/rc.conf.local echo "furt_flags=" >> /etc/rc.conf.local
rcctl enable furt rcctl enable furt
``` ```
**Warum start.sh statt direkter Lua-Aufruf:** Das integrierte `start.sh`-Script löst Plattform-Detection, Service-Mode-Erkennung und Lua-Command-Detection automatisch. Direkte `exec lua`-Aufrufe hängen im Daemon-Context. **Das Template `deployment/openbsd/rc.d-furt` enthält:**
- Service-vs-Interactive-Detection über `start.sh`
- Korrekte Daemon-Konfiguration für OpenBSD
- Prozess-Pattern für `rcctl`-Integration
**Linux systemd-Unit** - `/etc/systemd/system/furt.service`: **Linux systemd-Unit** - `/etc/systemd/system/furt.service`:
```ini ```ini