Skip to content

Instantly share code, notes, and snippets.

@artembeloglazov
Created March 18, 2016 07:57
Show Gist options
  • Save artembeloglazov/293efd24043232f499eb to your computer and use it in GitHub Desktop.
Save artembeloglazov/293efd24043232f499eb to your computer and use it in GitHub Desktop.
Управление автозагрузкой linux

Показать все сервисы

systemctl list-unit-files --type service

Показать включенные сервисы

systemctl list-unit-files --type service|grep enabled

Показать статус сервиса

systemctl status sshd.service

Отображение статуса всех сервисов

systemctl list-units --type service --all

Отображение статуса включенных сервисов

systemctl list-units --type service --all|grep running

Каккой target используется поумолчанию

systemctl get-default

Просмотреть загруженные таргеты

systemctl list-units --type target

Посмотреть все таргеты

systemctl list-units --type target --all

Сменить target поумолчанию

systemctl set-default name.target

Запустить новый таргет, остановив другие

systemctl isolate name.target

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment