mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-15 01:33:18 +02:00
25 lines
489 B
Django/Jinja
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
|
|
|
|
|