User Tools

Site Tools


computing:linux:services_startup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computing:linux:services_startup [2018/02/28 07:28]
gcooper
computing:linux:services_startup [2018/02/28 09:09] (current)
gcooper
Line 1: Line 1:
 ====== Services Startup Configuration Notes ====== ====== Services Startup Configuration Notes ======
 +
 +===== systemd =====
 +
 +https://askubuntu.com/questions/912216/16-04-command-to-list-all-services-started-on-boot
 +
 +  * ''+'' = running
 +  * ''-'' = stopped
 +
 +**List** services: 
  
 <file> <file>
-/etc/init.d/<servicename> start|stop|status+service --status-all
 </file> </file>
  
-===== CentOS/RedHat =====+**Query status, enable or disable** a service:
  
 <file> <file>
-chkconfig --list +systemctl [is-enabled|enable|disable] <servicename>
- +
-chkconfig <servicename> on|off+
 </file> </file>
  
-===== Debian/Ubuntu =====+List all **enabled** services:
  
-https://askubuntu.com/questions/912216/16-04-command-to-list-all-services-started-on-boot +<file> 
- +systemctl list-unit-files | grep enabled 
-List services: +</file> 
 +List **currently running** services:
  
 <file> <file>
-service --status-all+systemctl | grep running
 </file> </file>
  
-Enable or disable a service:+===== sysvinit =====
  
 <file> <file>
-systemctl [enable|disable] <servicename>+/etc/init.d/<servicename> start|stop|status
 </file> </file>
  
 +===== CentOS/RedHat =====
  
 +<file>
 +chkconfig --list
  
 +chkconfig <servicename> on|off
 +</file>
  
-Older:+===== Debian/Ubuntu =====
  
 <file> <file>
computing/linux/services_startup.1519828116.txt.gz · Last modified: 2018/02/28 07:28 by gcooper