mastible/roles/mastodon-systemd/files/mastodon-streaming.service

17 lines
291 B
SYSTEMD
Raw Normal View History

2017-11-27 00:03:12 +00:00
[Unit]
Description=mastodon-streaming
After=network.target
[Service]
Type=simple
User=mastodon
WorkingDirectory=/home/mastodon/live
Environment="NODE_ENV=production"
Environment="PORT=4000"
ExecStart=/usr/bin/npm run start
TimeoutSec=15
Restart=always
[Install]
WantedBy=multi-user.target