1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
# Feel free to modify the name of the PostgreSQL service following
# your installation.
#
# For more info about custom unit files, see
# http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F
[Unit]
Description=Postgresql performance and auditing reporting
Documentation=man:pgcluu(1)
[Service]
PermissionsStartOnly=true
User=postgres
Environment=STATDIR=/var/lib/pgcluu/data
Environment=REPORTDIR=/var/lib/pgcluu/report
ExecStart=/usr/bin/pgcluu -o $REPORTDIR $STATDIR
[Install]
WantedBy=multi-user.target
|