systemd
#Linux #ログ
第10章 SYSTEMD によるサービス管理
10.6.2. カスタムユニットファイルの作成
/etc/systemd/system/以下にunitファイルを作成している。
ユニットファイルを修正したら常に以下のコマンドを実行する必要がある。
systemctl daemon-reload
systemd command line reference (cheat sheet) – The Geek Diary
JOURNAL
https://access.redhat.com/documentation/ja-jp/red_hat_enterprise_linux/7/html/system_administrators_guide/s1-using_the_journal
journalctl -n 20 -u service
JOURNALログ表示
systemctl list-units --type service --all
すべてのサービスのステータスを表示
---
設定されているタイマーリストの確認
sudo systemctl list-timers
---
logの転送
vector
rust
https://github.com/timberio/vector
systemd-homed
systemd-homed - ArchWiki
--------------------------------------
reference
service
https://www.freedesktop.org/software/systemd/man/systemd.service.html
timer
https://www.freedesktop.org/software/systemd/man/systemd.timer.html#
systemd-run コマンドでtimerを作成できる
https://jlk.fjfi.cvut.cz/arch/manpages/man/systemd-run.1.html
arch
https://wiki.archlinux.jp/index.php/Systemd
その他
https://memo.open-code.club/Linux/systemd/timerユニット.html
-----