technicalsuwako.moe/gemini/blog/rcd-for-systemd-user.gmi

18 行
1.4 KiB
Plaintext
Raw 通常表示 履歴

2023-03-21 01:40:35 +09:00
=> /blog.gmi ブログ一覧へ
#【OpenBSD】systemdユーザー向けrc.d使い方
投稿日2022-11-17
```
| コマンド | rc.d | systemd |
| -------------------------------- | ------------------------------- | -----------------------------------------|
| サービスの有効化 | rcctl enable <サービス名> | systemctl enable <サービス名> |
| サービスの無効化 | rcctl disable <サービス名> | systemctl disable <サービス名> |
| サービスが有無の確認 | rcctl ls on | grep <サービス名> | systemctl is-enabled <サービス名> |
| サービスの起動 | rcctl start <サービス名> | systemctl start <サービス名> |
| サービスの終了 | rcctl stop <サービス名> | systemctl stop <サービス名> |
| サービスの再起動 | rcctl restart <サービス名> | systemctl restart <サービス名> |
| サービスの状況の確認 | rcctl check <サービス名> | systemctl status <サービス名> |
| サービスの有効済みスクリプト一覧 | rcctl ls on | systemctl list-unit-files --type=service |
```