rabbit-slide-znz-kansaidebian-lt-20180624 2018.06.24

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: f91c5ea0d86aaf73ae9002d8238c90cfc689b45938aa1a28a7ca8f7e4caa1f17
4
+ data.tar.gz: d6a1f6cd1245df055803070ec1a863cedfdb78ee67693a6c4e47339cb759db86
5
+ SHA512:
6
+ metadata.gz: f20b0b7254f0a1e61bb686ea14cfb8c65683cdbc36f082bd14298439623076f8099b7e645ca46864cc18ec7fee27d09b4b0d78d6973ba513a8aa1acd11d005cc
7
+ data.tar.gz: 1189f5bc4d3fde7c8a3e66d53395bfcabdde9650b52f5dc4900921f8001f8d2a6e48369f3cf209d3aed3f471dfb26767785fa616e6fc18802246e5bbcc7be798
data/.rabbit ADDED
@@ -0,0 +1 @@
1
+ systemd-subcommands.md
@@ -0,0 +1,24 @@
1
+ # systemdでよく使うサブコマンド
2
+
3
+ [第136回関西Debian勉強会 + Linux Kernel 勉強会 LT大会](https://debianjp.connpass.com/event/90376/)での発表資料です。
4
+
5
+ ## 作者向け
6
+
7
+ ### 表示
8
+
9
+ rake
10
+
11
+ ### 公開
12
+
13
+ rake publish
14
+
15
+ ## 閲覧者向け
16
+
17
+ ### インストール
18
+
19
+ gem install rabbit-slide-znz-kansaidebian-lt-20180624
20
+
21
+ ### 表示
22
+
23
+ rabbit rabbit-slide-znz-kansaidebian-lt-20180624.gem
24
+
@@ -0,0 +1,17 @@
1
+ require "rabbit/task/slide"
2
+
3
+ # Edit ./config.yaml to customize meta data
4
+
5
+ spec = nil
6
+ Rabbit::Task::Slide.new do |task|
7
+ spec = task.spec
8
+ # spec.files += Dir.glob("doc/**/*.*")
9
+ # spec.files -= Dir.glob("private/**/*.*")
10
+ # spec.add_runtime_dependency("YOUR THEME")
11
+ end
12
+
13
+ desc "Tag #{spec.version}"
14
+ task :tag do
15
+ sh("git", "tag", "-a", spec.version.to_s, "-m", "Publish #{spec.version}")
16
+ sh("git", "push", "--tags")
17
+ end
@@ -0,0 +1,20 @@
1
+ ---
2
+ id: kansaidebian-lt-20180624
3
+ base_name: systemd-subcommands
4
+ tags:
5
+ - linux
6
+ presentation_date: 2018/06/24
7
+ version: 2018.06.24
8
+ licenses: []
9
+ slideshare_id: systemd-102887739
10
+ speaker_deck_id: systemddeyokushi-usabukomando
11
+ ustream_id:
12
+ vimeo_id:
13
+ youtube_id:
14
+ author:
15
+ markup_language: :markdown
16
+ name: Kazuhiro NISHIYAMA
17
+ email: zn@mbf.nifty.com
18
+ rubygems_user: znz
19
+ slideshare_user: znzjp
20
+ speaker_deck_user: znz
@@ -0,0 +1,87 @@
1
+ # systemdでよく使うサブコマンド
2
+
3
+ author
4
+ : Kazuhiro NISHIYAMA
5
+
6
+ content-source
7
+ : 第136回関西Debian勉強会 + Linux Kernel 勉強会 LT大会
8
+
9
+ date
10
+ : 2018/06/24
11
+
12
+ allotted-time
13
+ : 10m
14
+
15
+ theme
16
+ : lightning-simple
17
+
18
+ # self.introduce
19
+
20
+ - One of Ruby committers
21
+ - Twitter, GitHub: `@znz`
22
+
23
+ # 基本コマンド
24
+
25
+ - systemctl start Unit名
26
+ - systemctl stop Unit名
27
+ - systemctl restart Unit名
28
+ - systemctl status Unit名
29
+
30
+ # たまに使うコマンド
31
+
32
+ - systemctl enable Unit名
33
+ - systemctl disable Unit名
34
+
35
+ Debian 系に慣れているとパッケージインストールで即有効担っていることが多いので忘れがち
36
+
37
+ # 一覧コマンド
38
+
39
+ - systemctl list-units
40
+ - systemctl list-timers
41
+
42
+ # systemd の設定ファイルの場所
43
+
44
+ - /lib, /usr/lib 以下: パッケージが使う (例: /lib/systemd/system, /usr/lib/tmpfiles.d)
45
+ - 普通はいじらない
46
+ - /etc 以下: 変更するファイル (例: /etc/systemd/system, /etc/tmpfiles.d)
47
+ - 同名ファイルで完全に上書き
48
+ - Unit名.d/なんとか.conf で追加変更
49
+ - /run 以下: 動的に生成されるファイル (例: /run/systemd/system, /run/tmpfiles.d)
50
+ - init.d 以下から自動生成されるファイルがあった覚えがあるけど最近のだと見当たらなかった
51
+
52
+ # 設定変更
53
+
54
+ - systemctl edit Unit名
55
+ - /etc/systemd/system/Unit名.d/override.conf を編集
56
+ - edit サブコマンドを使わずに管理しやすい名前のファイル名にしても良い
57
+ - systemctl daemon-reload
58
+ - systemctl restart Unit名の前に設定ファイルの変更を反映させる必要あり
59
+ - 忘れていてもメッセージが出るので気づける
60
+
61
+ # systemctl cat
62
+
63
+ ```console
64
+ $ systemctl cat php7.0-fpm.service
65
+ # /lib/systemd/system/php7.0-fpm.service
66
+ [Unit]
67
+ Description=The PHP 7.0 FastCGI Process Manager
68
+ After=network.target
69
+
70
+ [Service]
71
+ Type=notify
72
+ PIDFile=/run/php/php7.0-fpm.pid
73
+ ExecStartPre=/usr/lib/php/php7.0-fpm-checkconf
74
+ ExecStart=/usr/sbin/php-fpm7.0 --nodaemonize --fpm-config /etc/php/7.0/fpm/php-fpm.conf
75
+ ExecReload=/usr/lib/php/php7.0-fpm-checkconf
76
+ ExecReload=/bin/kill -USR2 $MAINPID
77
+
78
+ [Install]
79
+ WantedBy=multi-user.target
80
+
81
+ # /etc/systemd/system/php7.0-fpm.service.d/override.conf
82
+ [Unit]
83
+ After=nslcd.service
84
+ ```
85
+
86
+ - 上書きも含めて設定確認例
87
+ - LDAP のユーザーを使って権限分離する設定をしている都合で nslcd を待ってから起動する必要があった
metadata ADDED
@@ -0,0 +1,63 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rabbit-slide-znz-kansaidebian-lt-20180624
3
+ version: !ruby/object:Gem::Version
4
+ version: 2018.06.24
5
+ platform: ruby
6
+ authors:
7
+ - Kazuhiro NISHIYAMA
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-06-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rabbit
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 2.0.2
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 2.0.2
27
+ description: "[第136回関西Debian勉強会 + Linux Kernel 勉強会 LT大会](https://debianjp.connpass.com/event/90376/)での発表資料です。"
28
+ email:
29
+ - zn@mbf.nifty.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - ".rabbit"
35
+ - README.md
36
+ - Rakefile
37
+ - config.yaml
38
+ - pdf/kansaidebian-lt-20180624-systemd-subcommands.pdf
39
+ - systemd-subcommands.md
40
+ homepage: http://slide.rabbit-shocker.org/authors/znz/kansaidebian-lt-20180624/
41
+ licenses: []
42
+ metadata: {}
43
+ post_install_message:
44
+ rdoc_options: []
45
+ require_paths:
46
+ - lib
47
+ required_ruby_version: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ version: '0'
52
+ required_rubygems_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
57
+ requirements: []
58
+ rubyforge_project:
59
+ rubygems_version: 2.7.6
60
+ signing_key:
61
+ specification_version: 4
62
+ summary: systemdでよく使うサブコマンド
63
+ test_files: []