Загрузка страницы

How to run a startup script using systemd

Today's tip is how to run a startup script using systemd. If everything you need is to run a simple startup script when you boot into Linux, there's no need to become an expert in systemd. Below are the files I used on this video.

/usr/local/sbin/my-startup.sh:
#!/bin/sh

hdparm -Y /dev/sdb

/etc/systemd/system/my-startup.service:
[Unit]
Description=Startup

[Service]
ExecStart=/usr/local/sbin/my-startup.sh

[Install]
WantedBy=multi-user.target

Видео How to run a startup script using systemd канала Linux Spot
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
7 февраля 2018 г. 6:29:51
00:07:13
Яндекс.Метрика