[Unit] Description=Synapse Matrix homeserver [Service] Type=simple User={{ pg_exporter_user }} Group={{ pg_exporter_user }} EnvironmentFile={{ pg_exporter_root_dir }}/etc/postgres-exporter.conf ExecStart={{ pg_exporter_root_dir }}/app/postgres_exporter PrivateTmp=yes PrivateDevices=yes ProtectSystem=full ProtectHome=yes NoNewPrivileges=yes MemoryLimit=512M SyslogIdentifier=postgres-exporter Restart=on-failure StartLimitInterval=0 RestartSec=30 [Install] WantedBy=multi-user.target