summarylogtreecommitdiffstats
path: root/pgagent@.service
blob: 78fbfc6b273b4056ffb7df2960a49b30b98fcd20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[Unit]
Description=Job scheduler for PostgreSQL on %i
After=network.target

[Service]
Type=forking
EnvironmentFile=/etc/conf.d/pgagent@%i
ExecStart=/usr/bin/pgagent -t ${PGA_POLL} -r ${PGA_RETRY} -s ${PGA_LOG} -l ${PGA_LEVEL} \
          hostaddr=${PG_HOST} dbname=${PG_DBNAME} user=${PG_USER}
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=always

[Install]
WantedBy=multi-user.target