| 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 |
ExecStart=/usr/bin/pgcluu -o $REPORTDIR $STATDIR |
| 20 |
|
| 21 |
[Install] |
| 22 |
WantedBy=multi-user.target |
| 23 |
|