29 lines
464 B
Desktop File
29 lines
464 B
Desktop File
[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
|
|
|