• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Linux OS Service ‘psacct’

by admin

The psacct service is responsible for starting and stopping process accounting at system boot time and at system shutdown. This service is a wrapper that invokes the action accounting control program.

Service Control

To obtain the psacct service, install the psacct RPM package:

# yum install psacct

To manage the psacct service for automated service start and stop, use the chkconfig tool:

# chkconfig psacct on
# chkconfig --list psacct
psacct 0:off 1:off 2:on 3:on 4:on 5:on 6:off
# /sbin/chkconfig psacct off

To control the psacct service immediately, use the service tool:

# service psacct
Usage: /etc/init.d/psacct {start|stop|status|restart|reload}

The table below describes all available commands for the psacct service:

Command Description
start Start the accton application to begin process accounting.
stop Invoke the accton application to discontinue process accounting.
status Display a message saying whether or not process accounting is active.
restart Equivalent to a stop and then a start command sequence.
reload Equivalent to a stop and then a start command sequence.

Service Configuration

The psacct service has no configuration file and cannot be customized.

Filed Under: Linux, Linux Services

Some more articles you might also be interested in …

  1. Linux / UNIX OS service : Bluetooth
  2. How to install packages using dnf in CentOS/RHEL 8
  3. “cannot install the best update candidate for package” – error on running dnf update
  4. lvmdiskscan Command Examples in Linux
  5. xxd command – Expressed in hexadecimal form
  6. lvcreate/lvremove Failed with Error “Can’t remove merging snapshot logical volume”
  7. How Passwordless SSH works in Linux / UNIX
  8. “Failed to start test.mount: Unit is not loaded properly: Invalid argument.” – While mounting a fileystem using systemd
  9. The System Continuously Displayed the Error Message from the “avahi-demon” in /var/log/messages
  10. CentOS / RHEL 6 : How to rebuild Initial Ramdisk Image

You May Also Like

Primary Sidebar

Recent Posts

  • What are /dev/zero and /dev/null files in Linux
  • grpck command – Remove corrupt or duplicate entries in the /etc/group and /etc/gshadow files.
  • xxd command – Expressed in hexadecimal form
  • sesearch: command not found

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright