「Linux関係のメモ」の版間の差分
| (同じ利用者による、間の11版が非表示) | |||
| 23行目: | 23行目: | ||
|追記のみ | |追記のみ | ||
|} | |} | ||
| + | |||
| + | == dnscrypt-proxyの[[systemd]]ファイル == | ||
| + | <pre> | ||
| + | [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 | ||
| + | |||
| + | </pre> | ||
| + | |||
| + | == s2diskをsystemd-hibernateで設定する方法 == | ||
| + | <code>sudo systemctl edit systemd-hibernate.service</code>を実行。 | ||
| + | |||
| + | 以下を入れる。 | ||
| + | |||
| + | <pre> | ||
| + | [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 | ||
| + | </pre> | ||
[[Category:技術]] | [[Category:技術]] | ||
| − | [[Category:Linux | + | [[Category:Linux]] |
| + | [[Category:オペレーティングシステム]] | ||
[[Category:コンピューティング]] | [[Category:コンピューティング]] | ||
| + | [[Category:オープンソース]] | ||
| + | {{DEFAULTSORT:Linuxかんけいのメモ}} | ||
2018年12月2日 (日) 05: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