Debian Codegraph @

pgcluu.service

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 # Feel free to modify the name of the PostgreSQL service following
2 # your installation.
3 #
4 # For more info about custom unit files, see
5 # http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F
6
7
8
9 [Unit]
10 Description=Postgresql performance and auditing reporting
11 Documentation=man:pgcluu(1)
12
13
14 [Service]
15 PermissionsStartOnly=true
16 User=postgres
17 Environment=STATDIR=/var/lib/pgcluu/data
18 Environment=REPORTDIR=/var/lib/pgcluu/report
19 ExecStartPre=-/bin/mkdir -p $REPORTDIR
20 ExecStartPre=-/bin/chown postgres:www-data $REPORTDIR
21 ExecStartPre=-/bin/chmod u=rwX,g=rsX,o= $REPORTDIR
22 ExecStart=/usr/local/bin/pgcluu -o $REPORTDIR $STATDIR
23
24 [Install]
25 WantedBy=multi-user.target
26