• 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

initctl Command Examples in Linux

by admin

The initctl command sends commands to the Upstart init daemon. Use it to monitor jobs or events, call jobs directly, or send custom events to the daemon.

Syntax:

# initctl [options] command

Options

Option Description
–show-ids Show unique process id (pid) as well as the job id.
–by-id Parameter passed to command is a job id.
–no-wait When using start, stop, or emit, exit immediately instead of waiting for the request to finish.
–quiet Only show errors when running the given command.

initctl Command Examples

1. To start the job/service:

# initctl start JOB

2. To stop a job/service:

# initctl stop JOB

3. To restart a job/service:

# initctl restart JOB

4. To reload a job/service:

# initctl reload JOB

5. To get the status of a service/job:

# initctl status JOB

6. To list all the initctl controlled services/jobs:

# initctl list

7. To reload the configuration file:

# initctl reload-configuration JOB

8. To get the version of the init daemon:

# initctl version

9. To set the log priority:

# initctl debug
# initctl info
# initctl message
# initctl warn
# initctl error
# initctl fatal

Filed Under: Linux

Some more articles you might also be interested in …

  1. Linux OS Service ‘cpuspeed’
  2. CentOS / RHEL : Beginners guide to vsftpd (installation and configuration)
  3. How to Setup a sudo Switch to Another User That Has no Password or ssh Key Set in Linux
  4. CentOS / RHEL 7 : How to enable or disable automatic updates (via packagekit)
  5. How to Manage Virtual Machines from the CentOS/RHEL 8 Web Console-Cockpit
  6. How to enable core dump for Applications on CentOS/RHEL
  7. /var/cache/yum Constantly Filling Files System in CentOS/RHEL
  8. How to Remove/ Disable Bash shell Command History on Linux
  9. How to verify if NX/XD is Enabled or Disabled in CentOS/RHEL 7 and 8
  10. How to Configure rsyslog to Filter/discard Specific IP Address in CentOS/RHEL 6,7

You May Also Like

Primary Sidebar

Recent Posts

  • 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
  • macof: command not found

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright