2018-09-24 10:46:05 -04:00
|
|
|
[Unit]
|
|
|
|
Description=mastodon-streaming
|
|
|
|
After=network.target
|
2019-07-10 03:26:51 -04:00
|
|
|
PartOf=mastodon.target
|
2018-09-24 10:46:05 -04:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User=mastodon
|
2019-07-10 03:26:51 -04:00
|
|
|
WorkingDirectory=workdir
|
2018-09-24 10:46:05 -04:00
|
|
|
Environment="NODE_ENV=production"
|
|
|
|
Environment="PORT=4000"
|
2019-07-10 03:26:51 -04:00
|
|
|
ExecStart=/usr/bin/npm run start
|
2018-09-24 10:46:05 -04:00
|
|
|
TimeoutSec=15
|
|
|
|
Restart=always
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|