JA

.service D-Bus サービスファイル

テキスト・ソースコード

MIME タイプtext/x-dbus-service
text/x-systemd-unit
説明D-Bus サービスファイル
カテゴリテキスト・ソースコード
シグネチャ (マジックバイト)5B 44 2D 42 55 53 20 53 65 72 76 69 63 65 5D 0A ([D-BUS Service].)
ベース形式text/plain

よくある質問

.service ファイルとは?

拡張子 .service は複数の形式で使われています: D-Bus サービスファイル (text/x-dbus-service)、systemdのunitファイル (text/x-systemd-unit)。

.service ファイルを開くには?

Notepad++、Visual Studio Code、Linux なら gedit や vim など、任意のテキストエディターで開けます。中身は読めるテキストで、ソースコードや設定の場合もあります。

本物の .service ファイルか見分けるには?

ファイル先頭のバイト列、つまりシグネチャ (マジックバイト) で見分けます: 5B 44 2D 42 55 53 20 53 65 72 76 69 63 65 5D 0A ([D-BUS Service].)。Linux と macOS では file --mime-type example.service で、拡張子に関係なく実際の形式を確認できます。

.service はどの形式をベースにしていますか?

技術的には、.service ファイルは「平文文書」(text/plain) のサブタイプです。そのため、ベースとなる形式に対応したプログラムでも読めることがよくあります。

.service の MIME タイプは?

MIME タイプは text/x-dbus-service です。Apache では AddType text/x-dbus-service .service、nginx では types { text/x-dbus-service service; } と設定します。

近くの項目