Debian Codegraph @

pgcluu_collectd.service

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 # Start script to run pgcluu_collectd as daemon
2 #
3 # Feel free to modify the name of the PostgreSQL service and the paths following
4 # your installation.
5 #
6
7 [Unit]
8 Description=Postgresql performance and auditing statistics collecting
9 Documentation=man:pgcluu(1)
10 After=postgresql.service
11 Wants=postgresql.service
12
13
14 [Service]
15 Type=forking
16 PermissionsStartOnly=true
17 User=postgres
18 Environment=STATDIR=/var/lib/pgcluu/data
19 Environment=PIDFILE=/run/postgresql/pgcluu_collectd.pid
20 ExecStartPre=-/bin/mkdir -p $STATDIR
21 ExecStartPre=-/bin/chown postgres:www-data $STATDIR
22 ExecStartPre=-/bin/chmod u=rwX,g=rsX,o= $STATDIR
23 ExecStart=/usr/local/bin/pgcluu_collectd --daemonize --rotate-daily --pid-file $PIDFILE $STATDIR
24 ExecStop=/usr/local/bin/pgcluu_collectd -k --pid-file $PIDFILE
25 KillMode=process
26 Restart=on-failure
27 RestartSec=60s
28 PIDFile=/run/postgresql/pgcluu_collectd.pid
29
30 [Install]
31 WantedBy=multi-user.target
32