collabrix/teamchat.service
DGSoft 200579c411 Fix Systemd Service with Dedicated Daemon Script
- teamchat-daemon.sh: Systemd-compatible daemon that stays in foreground
- Updated teamchat.service to use daemon script
- Automatic service restart on failures
- Health monitoring every 30 seconds
- Proper signal handling for clean shutdown
- Systemd journal logging integration
2025-12-09 22:35:55 +01:00

22 lines
456 B
Desktop File

[Unit]
Description=Team Chat System
After=network.target postgresql.service
Requires=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/home/OfficeDesk
ExecStart=/home/OfficeDesk/teamchat-daemon.sh
ExecStop=/home/OfficeDesk/service-manager.sh stop
Restart=always
RestartSec=5
StandardOutput=journal
StandardError=journal
SyslogIdentifier=teamchat
# Environment variables
Environment=NODE_ENV=production
[Install]
WantedBy=multi-user.target