Ajouter 'services/mastodon-streaming.service'

This commit is contained in:
virtubox 2017-04-13 12:05:32 +00:00
parent 4e93096979
commit 15c5549e78
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
[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