[Unit]
Description=Matrix Integrations Server
Requires=matrix-synapse.service postgresql.service
After=network.target

[Service]
Type=simple
ExecStart=/opt/matrix/dimension/start.sh
ExecStop=/opt/matrix/dimension/stop.sh
WorkingDirectory=/opt/matrix/dimension

Restart=always
RestartSec=60

SyslogIdentifier=dimension

User=dimension
Group=matrix

[Install]
WantedBy=default.target