Difference between revisions of "Systemd"

From HyperSecurity Wiki
Jump to: navigation, search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
'''Detailed error by pid'''
 +
journalctl _PID=number
 +
 
'''List all services'''
 
'''List all services'''
 
  systemctl -a
 
  systemctl -a
Line 7: Line 10:
 
'''Enable service to start at startup:'''
 
'''Enable service to start at startup:'''
 
  systemctl enable name.service
 
  systemctl enable name.service
 +
 +
'''List all active jobs'''
 +
systemctl list-jobs
 +
 +
'''Stop and force service off'''
 +
systemctl mask name.service
 +
 +
'''Start and force service on'''
 +
systemctl unmask name.service

Latest revision as of 22:15, 15 August 2016

Detailed error by pid

journalctl _PID=number

List all services

systemctl -a

Start a service:

systemctl start name.service

Enable service to start at startup:

systemctl enable name.service

List all active jobs

systemctl list-jobs

Stop and force service off

systemctl mask name.service

Start and force service on

systemctl unmask name.service