Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
489 B

[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