ansible-role-web_mastodon/files/systemd/mastodon-streaming.service.j2

16 lines
310 B
Text
Raw Normal View History

2022-10-11 09:19:16 +02:00
[Unit]
Description=mastodon-streaming
After=network.target
[Service]
Type=simple
User=mastodon
WorkingDirectory={{ mastodon_home }}/{{ mastodon_path }}
Environment="NODE_ENV=production"
Environment="PORT=4000"
ExecStart=/usr/bin/npm run start
TimeoutSec=15
Restart=always
[Install]
WantedBy=multi-user.target