[Unit]
Description=Taiga events
After=network.target rabbitmq-server.service

[Service]
User={{ taiga_user }}
Group={{ taiga_user }}
WorkingDirectory={{ taiga_root_dir }}/app/events
ExecStart=/bin/npm run start:production
PrivateTmp=yes
PrivateDevices=yes
ProtectSystem=full
ProtectHome=yes
NoNewPrivileges=yes
MemoryLimit=512M
SyslogIdentifier=taiga-events
Restart=on-failure
StartLimitInterval=0
RestartSec=30

[Install]
WantedBy=multi-user.target

