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