ansible-roles/roles/postgresql_exporter/templates/postgres-exporter.service.j2
2021-12-01 19:13:34 +01:00

25 lines
489 B
Django/Jinja

[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