Skip to content

Commit

Permalink
sys-process/acct: initd implement checkpath, #603606
Browse files Browse the repository at this point in the history
  • Loading branch information
wimmuskee committed Dec 27, 2016
1 parent 4a75bf0 commit b1d0a5d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions sys-process/acct/files/acct.initd
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ depend() {

checkconfig() {
export ACCT_LOG=${ACCT_LOG:-/var/account/pacct}
if [ ! -e "${ACCT_LOG}" ] ; then
touch "${ACCT_LOG}"
chmod 600 "${ACCT_LOG}"
fi
checkpath -f -m 600 "${ACCT_LOG}"
return 0
}

Expand Down

0 comments on commit b1d0a5d

Please sign in to comment.