• 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. dumpe2fs Command Examples in Linux
  2. ldconfig Command Options
  3. env: command not found
  4. LVM Configuration : Volume Group (VG) Operations/Utilities
  5. atop Command Examples in Linux
  6. UNIX / Linux : What is the correct permission of /tmp and /var/tmp directories
  7. How to create LXC container using lxcbr0 and virbr0 in CentOS/RHEL
  8. iw: command not found
  9. pacman-key Command Examples
  10. “You must wait longer to change your password” – error while changing password in CentOS/RHEL

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright