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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • 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. uflash: command not found
  2. traceroute: command not found
  3. Linux OS Service ‘NetworkManagerDispatcher’
  4. How to install and configure “setroubleshootd” on CentOS/RHEL
  5. CentOS / RHEL : How to add a new Physical Volume to an existing Volume Group
  6. GlusterFS – Real Time Data Replication Across Multiple RHEL/CentOS Nodes
  7. vmstat: command not found
  8. nsnake Command Examples in Linux
  9. nmtui: command not found
  10. rc-status Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • “glab issue” Command Examples
  • “glab auth” Command Examples
  • “glab alias” Command Examples
  • gixy Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright