-
H_Shinonome
- 9755
- 0
- 5
- 2
![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
serviceとかchkconfigとか打つとsystemctlコマンドに変換してくれる。対応するものがない場合はエラーになる。 #ljstudy
2013-11-27 20:53:08![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
老害用ラッパーが残る限りIE6は生き続ける!!111111 #ljstudy
2013-11-27 20:54:33![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
Systemdの勉強しにきてる! #ljstudy (@ レッドハット株式会社 w/ @nagi2100rc2) http://t.co/RxfeHqyd3E
2013-11-27 20:56:24![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
systemd は Unit をグループで管理しているので、systemctl kill -s9 sshd.service で、sshd.service のグループに属するプロセス全てに KILL (9) を送信する、ようなこともできる。 #ljstudy
2013-11-27 20:56:53![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
ぜんぶ no daemonize 的なオプションついてるんですが daemonize するプログラムも使えるんですかね... #ljstudy
2013-11-27 20:57:03![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
やっぱSystemd真面目に使い始める価値がありそうだなあ。 #ljstudy
2013-11-27 20:57:07![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
同様に ExecStop で終了方法が指定されていても、それでもプロセスが残っていたらゴミとして強制終了してくれる。 #ljstudy
2013-11-27 20:58:06![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
Systemdに任せることで、ログを捨てて椅子を投げられることも無くなるね!なるね! #ljstudy
2013-11-27 20:58:23![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
systemd, ログ機能も持ってる。 /dev/log は rsyslog から systemd 管理へ。 rsyslogd は /run/systemd/journal/syslog を見るようになる。 #ljstudy
2013-11-27 20:59:00![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
systemd は /dev/log を Listen し、/run/systemd/journal/syslog に書き出す。journalctl -u sshd.service -b -a みたいにして、関連するログを確認できる。ログを一括管理できる。 #ljstudy
2013-11-27 21:00:39![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
rsysyslogdが散りばめる前のログをキャッチしてコマンド一発で欲しいサービスのログを見られるjournalctl超かっこいい #ljstudy
2013-11-27 21:01:42