collabrix/teamchat.service
DGSoft b10078dc2e Add Systemd Service for Persistent Background Services
- teamchat.service: Systemd service configuration
- install-service.sh: Automated service installer
- SYSTEMD_INSTALL_README.md: Complete installation guide
- Automatic start on boot with failure recovery
- Proper logging to systemd journal
- Root user configuration (can be customized)
- Troubleshooting and management commands
2025-12-09 22:33:17 +01:00

22 lines
462 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/service-manager.sh start
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