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

18 lines
320 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"
2018-08-25 14:43:03 +00:00
Environment="BIND=127.0.0.1"
2017-11-27 00:03:12 +00:00
ExecStart=/usr/bin/npm run start
TimeoutSec=15
Restart=always
[Install]
WantedBy=multi-user.target