Node.js Systemd Service
root@fooserver:
[Unit]
Description=Foo Site TiddlyWiki
[Service]
ExecStart=/usr/local/bin/tiddlywiki /srv/tw5-foosite --server
Restart=always
RestartSec=10
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=tw5-foosite
User=tw5-foosite
Group=tw5-foosite
Environment=NODE_ENV=production PORT=9251
[Install]
WantedBy=multi-user.target
EOF
systemctl enable tw5-foosite.service
systemctl start tw5-foosite.service
systemctl status tw5-foosite.service
systemctl daemon-reload
systemctl restart tw5-foosite.service