-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
37 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# systemd | ||
**systemd** – это подсистема инициализации и управления службами в Linux. С её помощью возможна настройка автоматического запуска сервисов и мониторинга ресурсов. | ||
|
||
## Порядок инициализации | ||
1. Открыть файл _vtp.service_ и подставить в него данные о директории скрипта, а также IP и свободном порте. При необходимости произвести дополнительную настройку юнита. | ||
2. Поместить _vtp.service_ в директорию `/etc/systemd/system`. | ||
3. Запустить терминал и последовательно выполнить следующие команды: | ||
``` | ||
systemctl daemon-reload | ||
systemctl start vtp | ||
systemctl enable vtp | ||
systemctl status vtp | ||
``` | ||
**Примечание:** В некоторых случаях для выполнения вышеперечисленных комманд необходимо дополнительно получить права суперпользователя. Для этого добавьте `sudo` в начале каждой строки. | ||
|
||
4. Проверить появившийся в терминале статус сервиса. Он должен выглядеть так: `Active: active (running)`. | ||
5. Выполнить в терминале `curl {HOST}/vtp/{SOURCE}` и убедиться в работоспособности автопостера. | ||
|
||
_Copyright © DUB1401. 2022-2023._ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters