- Replace unreliable pexp patterns with PID-file approach - Add graceful shutdown with timeout handling in rc.d script - Implement process validation after startup - Add SIGHUP config reload support for Unix services - Ensure PID-file cleanup on service exit - Update systemd service to use PIDFile parameter Platform improvements: - OpenBSD: rc_check/rc_stop functions now PID-file based - Linux: systemd Type=forking with proper PIDFile support - Cross-platform: /var/run/furt.pid standard location Resolves service status detection issues where rcctl check showed (failed) despite running service due to process name variations across platforms.
19 lines
341 B
Desktop File
19 lines
341 B
Desktop File
[Unit]
|
|
Description=furt Multi-Tenant API Gateway
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
User=furt
|
|
Group=furt
|
|
ExecStart=/usr/local/share/furt/scripts/start.sh
|
|
PIDFile=/var/run/furt.pid
|
|
WorkingDirectory=/usr/local/share/furt
|
|
Restart=always
|
|
RestartSec=5
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|