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

18 行
1.3 KiB
Plaintext
Raw パーマリンク Blame 履歴

このファイルには曖昧(ambiguous)なUnicode文字が含まれています

このファイルには、他の文字と見間違える可能性があるUnicode文字が含まれています。 それが意図的なものと考えられる場合は、この警告を無視して構いません。 それらの文字を表示するにはエスケープボタンを使用します。

=> /blog.gmi ブログ一覧へ
#【Linux】systemdユーザー向けSysV使い方
投稿日2022-11-15
```
| コマンド | SysV | systemd |
| -------------------------------- | ---------------------------- | -----------------------------------------|
| サービスの有効化 | chkconfig <サービス名> on | systemctl enable <サービス名> |
| サービスの無効化 | chkconfig <サービス名> off | systemctl disable <サービス名> |
| サービスが有無の確認 | chkconfig <サービス名> | systemctl is-enabled <サービス名> |
| サービスの起動 | service <サービス名> start | systemctl start <サービス名> |
| サービスの終了 | service <サービス名> stop | systemctl stop <サービス名> |
| サービスの再起動 | service <サービス名> restart | systemctl restart <サービス名> |
| サービスの状況の確認 | service <サービス名> status | systemctl status <サービス名> |
| サービスの有効済みスクリプト一覧 | chkconfig list | systemctl list-unit-files --type=service |
```