# Kindie — systemd service example (Linux, manual/non-Docker install) # # Keeps Kindie running in the background and restarts it automatically if it # crashes or the server reboots. # # 1. Edit the two paths below (WorkingDirectory, ExecStart) and the User to # match where you extracted Kindie and which Linux user should run it — # do not run it as root. # 2. Save this file as: /etc/systemd/system/kindie.service # 3. Then run: # sudo systemctl daemon-reload # sudo systemctl enable kindie # sudo systemctl start kindie # sudo systemctl status kindie # # View live logs at any time with: sudo journalctl -u kindie -f # # See "Running the Application" in the Kindie user guide for details. [Unit] Description=Kindie After=network.target mongod.target [Service] Type=simple User=kindie WorkingDirectory=/opt/kindie ExecStart=/usr/bin/node app.js Environment=NODE_ENV=production Restart=on-failure RestartSec=5 [Install] WantedBy=multi-user.target