Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 635262 | Differences between
and this patch

Collapse All | Expand All

(-)files.orig/acct.confd-r1 (-1 / +1 lines)
Lines 2-8 Link Here
2
2
3
# ACCT_LOG specifies the accounting logging file.
3
# ACCT_LOG specifies the accounting logging file.
4
# Remember to create it manually if it doesn't yet exist.
4
# Remember to create it manually if it doesn't yet exist.
5
#ACCT_LOG="/var/account/pacct"
5
#ACCT_LOG="/var/log/account/pacct"
6
6
7
# REPORT_OPTS contains arguments for the "sa" command,
7
# REPORT_OPTS contains arguments for the "sa" command,
8
# used for console-reporting.
8
# used for console-reporting.
(-)files.orig/acct.initd-r2 (-2 / +2 lines)
Lines 1-8 Link Here
1
#!/sbin/openrc-run
1
#!/sbin/openrc-run
2
# Copyright 1999-2017 Gentoo Foundation
2
# Copyright 1999-2019 Gentoo Foundation
3
# Distributed under the terms of the GNU General Public License v2
3
# Distributed under the terms of the GNU General Public License v2
4
4
5
 : ${ACCT_LOG:=/var/account/pacct}
5
 : ${ACCT_LOG:=/var/log/account/pacct}
6
 : ${REPORT_OPTS:="--sort-real-time --list-all-names --percentage"}
6
 : ${REPORT_OPTS:="--sort-real-time --list-all-names --percentage"}
7
7
8
extra_started_commands="report"
8
extra_started_commands="report"
(-)files.orig/acct.logrotate-r1 (-1 / +1 lines)
Lines 1-6 Link Here
1
# Logrotate file for acct
1
# Logrotate file for acct
2
2
3
/var/account/pacct {
3
/var/log/account/pacct {
4
	compress
4
	compress
5
	delaycompress
5
	delaycompress
6
	notifempty
6
	notifempty
(-)files.orig/acct.service (-3 / +3 lines)
Lines 1-12 Link Here
1
[Unit]
1
[Unit]
2
Description=Kernel process accounting
2
Description=Kernel process accounting
3
After=syslog.target
3
After=syslog.target
4
ConditionPathExists=/var/account
4
ConditionPathExists=/var/log/account
5
5
6
[Service]
6
[Service]
7
Type=oneshot
7
Type=oneshot
8
ExecStartPre=/bin/sh -c 'if [ ! -e /var/account/pacct ]; then /bin/touch /var/account/pacct ; /bin/chmod 0600 /var/account/pacct; fi'
8
ExecStartPre=/bin/sh -c 'if [ ! -e /var/log/account/pacct ]; then /bin/touch /var/log/account/pacct ; /bin/chmod 0600 /var/log/account/pacct; fi'
9
ExecStart=/sbin/accton /var/account/pacct
9
ExecStart=/sbin/accton /var/log/account/pacct
10
ExecStop=/sbin/accton off
10
ExecStop=/sbin/accton off
11
RemainAfterExit=yes
11
RemainAfterExit=yes
12
12

Return to bug 635262