environment/lib/data/templates/postgresql/postgresql.service.erb

30 lines
444 B
Text
Raw Normal View History

2025-08-07 13:02:01 +02:00
[Unit]
2025-08-07 16:29:11 +02:00
Description=PostgreSQL <%= version %>
2025-08-07 13:02:01 +02:00
After=network.target
[Service]
Type=notify
2025-08-07 19:41:04 +02:00
User=postgresql
Group=servicesql
2025-08-07 13:02:01 +02:00
2025-08-07 14:23:42 +02:00
ExecStart=<%= postgres_bin %> -D <%= database_dir %>/data
2025-08-07 13:02:01 +02:00
ExecReload=/bin/kill -HUP $MAINPID
KillMode=mixed
TimeoutSec=300
Restart=on-failure
NotifyAccess=all
# Security
ProtectSystem=full
ProtectHome=true
PrivateTmp=true
NoNewPrivileges=true
# Resource Limits
LimitNOFILE=65536
[Install]
WantedBy=multi-user.target