1 Purpose: Debian accton require an argument since at least 2009-07-11.
2 Authour: Petter Reinholdtsen
9 write_wtmp("shutdown", "~~", 0, RUN_LVL, "~~");
11 /* This is for those who have quota installed. */
12 - spawn(1, "accton", NULL);
13 + spawn(1, "accton", "off", NULL);
14 +/* This is an alternative way to disable accounting, saving a fork()
15 +#if _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500)
16 + if (acct(NULL)) perror("acct: ");
19 spawn(1, "quotaoff", "-a", NULL);