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

37 lines
537 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]
2025-08-07 21:05:37 +02:00
# Type=notify
Type=simple
2025-08-07 13:02:01 +02:00
2025-08-07 19:41:04 +02:00
User=postgresql
2025-08-07 21:05:37 +02:00
Group=services
ExecStart=<%= postgres_bin %> -D <%= database_dir %>
StandardOutput=journal
StandardError=journal
2025-08-07 13:02:01 +02:00
ExecReload=/bin/kill -HUP $MAINPID
KillMode=mixed
TimeoutSec=300
Restart=on-failure
NotifyAccess=all
# Security
2025-08-07 21:05:37 +02:00
#ProtectSystem=full
#ProtectHome=true
#ReadWritePaths=<%= database_dir %>
2025-08-07 13:02:01 +02:00
PrivateTmp=true
NoNewPrivileges=true
# Resource Limits
LimitNOFILE=65536
[Install]
WantedBy=multi-user.target