-
Verificar status de serviços:
systemctl status nginx systemctl status apache2.service systemctl status cups systemctl status bluetooth.service
-
Iniciar, parar e reiniciar serviços:
sudo systemctl start apache2.service sudo systemctl stop apache2.service sudo systemctl restart apache2.service
-
Ativar e desativar serviços no boot:
sudo systemctl enable apache2.service --now # Ativa e inicia o serviço sudo systemctl disable apache2.service --now # Desativa e para o serviço
-
Verificar se um serviço está habilitado no boot:
sudo systemctl is-enabled apache2.service
-
Status de múltiplos serviços:
sudo systemctl status cups-browsed.service accounts-daemon.service cups.service cups.socket
-
Habilitar e desabilitar múltiplos serviços:
sudo systemctl enable cups-browsed.service cups.socket cups.service sudo systemctl disable cups-browsed.service cups.socket cups.service --now -
Verificar se múltiplos serviços estão habilitados:
systemctl is-enabled cups-browsed.service cups.socket cups.service
-
Analisar tempos de inicialização de serviços:
systemd-analyze systemd-analyze blame
-
Monitorar uso de cgroups:
systemd-cgtop sudo systemd-cgtop -m
-
Visualizar o conteúdo de unidades de serviço:
systemctl cat docker.socket systemctl cat cups.socket systemctl cat bluetooth # SysVinit Service cat /etc/init.d/bluetooth -
Listar unidades e verificações adicionais:
ls /etc/systemd/system ls -l /etc/systemd/system/bluetooth.target.wants