mirror of
https://github.com/OHV-IT/collabrix.git
synced 2025-12-15 08:38:36 +01:00
- 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
22 lines
456 B
Desktop File
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 |