[Unit]
Description=Openproject web service
After=memcached.service postgresql.service postgresql-11.service
Wants=openproject-wroker.service

[Service]
User=openproject
Group=openproject
ExecStart=/usr/bin/openproject run web
PrivateTmp=yes
PrivateDevices=yes
ProtectHome=yes
NoNewPrivileges=yes
MemoryLimit=2048M
SyslogIdentifier=openproject-web
Restart=on-failure
StartLimitInterval=0
RestartSec=30

[Install]
WantedBy=multi-user.target
