From: | "Pacho Ramos (pacho)" <pacho@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-process/acct/files: acct.service |
Date: | Fri, 30 Aug 2013 20:06:41 |
Message-Id: | 20130830200635.42F6B2004E@flycatcher.gentoo.org |
1 | pacho 13/08/30 20:06:35 |
2 | |
3 | Added: acct.service |
4 | Log: |
5 | Add unit file (#479528 by CFuga) |
6 | |
7 | (Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key A188FBD4) |
8 | |
9 | Revision Changes Path |
10 | 1.1 sys-process/acct/files/acct.service |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/acct/files/acct.service?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-process/acct/files/acct.service?rev=1.1&content-type=text/plain |
14 | |
15 | Index: acct.service |
16 | =================================================================== |
17 | [Unit] |
18 | Description=Kernel process accounting |
19 | After=syslog.target |
20 | ConditionPathExists=/var/account |
21 | |
22 | [Service] |
23 | Type=oneshot |
24 | ExecStartPre=/bin/sh -c 'if [ ! -e /var/account/pacct ]; then /bin/touch /var/account/pacct ; /bin/chmod 0600 /var/account/pacct; fi' |
25 | ExecStart=/sbin/accton /var/account/pacct |
26 | ExecStop=/sbin/accton off |
27 | RemainAfterExit=yes |
28 | |
29 | [Install] |
30 | WantedBy=multi-user.target |