タグ

blogとsystemdに関するtvskのブックマーク (4)

  • /etc/os-release

    One of the new configuration files systemd introduced is /etc/os-release. It replaces the multitude of per-distribution release files[1] with a single one. Yesterday we decided to drop support for systems lacking /etc/os-release in systemd since recently the majority of the big distributions adopted /etc/os-release and many small ones did, too[2]. It's our hope that by dropping support for non-com

    tvsk
    tvsk 2020/12/30
    /etc/os-release ファイルは systemd 由来。
  • #きょうのsystemd : ルートを変える (systemd for Administrators, Part 6) - ぽぽの備忘録

    これは 0pointer.de の翻訳 ルートを変える 管理者であれ開発者であれ、遅かれ早かれ、chroot()環境に出会うことになる。 chroot()システムコールは単純にプロセスおよびその子がルートディレクトリ / と考えるものをシフトさせ、そのプロセスが見ることができるファイルの階層をそのサブツリーに制限することができる。 主としてchroot()環境には2つの用途がある: セキュリティ目的: この用途では、特定の独立したデーモンがプライベートなサブディレクトリにchroot()され、デーモンが悪用された場合でも、攻撃者は完全なOSの階層ではなく、サブディレクトリしか見ることができないようにすることができる。 OSイメージのデバッグ、テスト、ビルド、インストール、リカバリーをセットアップないしはコントロールするため: このためにゲストのOSの階層がホストOSのサブディレクトリにマウ

    #きょうのsystemd : ルートを変える (systemd for Administrators, Part 6) - ぽぽの備忘録
    tvsk
    tvsk 2020/03/19
    Lennart のブログ記事の翻訳。 filesystem namespace
  • systemd for Administrators, Part II

    Here's the second installment of my ongoing series about systemd for administrators. Which Service Owns Which Processes? On most Linux systems the number of processes that are running by default is substantial. Knowing which process does what and where it belongs to becomes increasingly difficult. Some services even maintain a couple of worker processes which clutter the "ps" output with many addi

    tvsk
    tvsk 2019/09/05
    systemd-cgls コマンドで cgroups によって束ねられたプロセス群をみる。サービスの配下に3つのプロセス。 “auditd.service spawns three individual processes, auditd, audisp and sedispatch.”
  • はじめてのsystemdサービス管理ガイド | DevelopersIO

    はじめに MarketplaceでCentOS 7 AMIがリリースされましたね!(ex. Amazon EC2 CentOS 7 AMIファーストインプレッション) ということで、これはもう格的にsystemdを学ばないとあかん、という危機感に駆られた次第です。systemdは"system and service manager"なので、電源やロケールなどのシステム部分の管理も可能ですが、差し当たってEC2で使う上で最低限押さえとかなければいかないのはサービス管理になるでしょう。そこでsystemdを操作するためのコマンドであるsystemctlを使って、サービスを管理する方法についてまとめました。 systemdサービス管理 systemdでは、これまでサービス起動スクリプトで定義されていたものがUnitという形で定義されますので、サービスの管理=Unitの管理となります。 有効化

    はじめてのsystemdサービス管理ガイド | DevelopersIO
  • 1