「Linux関係のメモ」の版間の差分

提供: Hideki Saito Wiki Japanese
移動先: 案内検索
(s2diskをsystemd-hibernateで設定する方法)
 
56行目: 56行目:
 
[[Category:技術]]
 
[[Category:技術]]
 
[[Category:Linux]]
 
[[Category:Linux]]
 +
[[Category:オペレーティングシステム]]
 
[[Category:コンピューティング]]
 
[[Category:コンピューティング]]
 
[[Category:オープンソース]]
 
[[Category:オープンソース]]
 
{{DEFAULTSORT:Linuxかんけいのメモ}}
 
{{DEFAULTSORT:Linuxかんけいのメモ}}

2018年12月2日 (日) 06:24時点における最新版

BIND9のログ設定

ローカルで使っているだけであまりログは必要ないので切る。

// Inhibit logs
logging {
        category "default" { null; };
        channel "default_log" { null; };
        channel "default_debug" { null; };
        channel "default_stderr" { null; };
        channel "null" { null; };
        };

chattrの属性

あまり使わないのでよく忘れるのでメモ。

i 消せないファイルを作成
a 追記のみ

dnscrypt-proxyのsystemdファイル

[Unit]
Description=DNS Crypt Proxy
After=network.target auditd.service

[Service]
Type=simple
ExecStart=/opt/dnscrypt-proxy/dnscrypt-proxy
KillMode=process
Restart=on-failure

[Install]
WantedBy=multi-user.target

s2diskをsystemd-hibernateで設定する方法

sudo systemctl edit systemd-hibernate.serviceを実行。

以下を入れる。

[Service]
ExecStart=
ExecStartPre=-/bin/run-parts -v -a pre /lib/systemd/system-sleep
ExecStart=/usr/sbin/s2disk
ExecStartPost=-/bin/run-parts -v --reverse -a post /lib/systemd/system-sleep