ansible-roles/webapps/mastodon/templates/mastodon-streaming.service.j2

22 lines
454 B
Plaintext
Raw Normal View History

2022-12-23 16:00:00 +01:00
[Unit]
Description=mastodon-streaming
After=network.target
PartOf={{service}}.target
[Service]
Type=simple
User={{service}}
Group={{service}}
UMask=0027
WorkingDirectory=/home/{{service}}/mastodon/
Environment="NODE_ENV=production"
Environment="PORT={{ node_port | default('4000')}}"
Environment="STREAMING_CLUSTER_NUM=1"
ExecStart=/bin/bash -lc "node ./streaming"
TimeoutSec=15
Restart=always
SyslogIdentifier=%p
[Install]
WantedBy={{service}}.target