Skip to content

Instantly share code, notes, and snippets.

@KozhevnikovM
Created October 17, 2022 08:30
Show Gist options
  • Save KozhevnikovM/996ae19c780dfc296a467bf8ddb0aef9 to your computer and use it in GitHub Desktop.
Save KozhevnikovM/996ae19c780dfc296a467bf8ddb0aef9 to your computer and use it in GitHub Desktop.
Шпаргалка по systemctl
systemctl list-units --type service --all — просмотр всех юнитов в системе
systemctl list-unit-files --type service
systemctl start name — запустить сервис
systemctl stop name — остановить сервис
systemctl restart name — перезапустить сервис
systemctl status name — посмотреть статус сервиса
systemctl reload name — перечитать конфигурацию
systemctl daemon-reload — перечитать конфигурацию для всех
systemctl try-restart name — перезапустить, если запущен
systemctl enable name — включить автозапуск сервиса
systemctl disable name — отключить автозапуск сервиса
systemctl list-unit-files --type service — список установленных юнит-файлов сервисов
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment