File acct.service of Package acct
14
1
[Unit]
2
Description=Process accounting
3
Documentation=man:accton(8)
4
5
[Service]
6
Type=oneshot
7
RemainAfterExit=true
8
ExecStartPre=/usr/bin/chmod 600 /var/log/account/pacct
9
ExecStart=/usr/sbin/accton /var/log/account/pacct
10
ExecStop=/usr/sbin/accton off
11
12
[Install]
13
WantedBy=multi-user.target
14