add possibility to create package

This commit is contained in:
Artur Gurgul1 2025-08-07 13:02:01 +02:00
parent a7807f089c
commit ed7fc9aa7f
6 changed files with 104 additions and 10 deletions

View file

@ -0,0 +1,29 @@
[Unit]
Description=PostgreSQL <%= version %> database server
After=network.target
[Service]
Type=notify
User=postgres
Group=services
ExecStart=<%= prefix %>/bin/postgres -D <%= database_path %>/data
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