.service D-Bus service file
Text & source code
| MIME type | text/x-dbus-service text/x-systemd-unit |
|---|---|
| Description | D-Bus service file |
| Category | Text & source code |
| Signature (magic bytes) | 5B 44 2D 42 55 53 20 53 65 72 76 69 63 65 5D 0A ([D-BUS Service].) |
| Based on | text/plain |
Frequently asked questions
What is a .service file?
The .service extension is used for several formats: D-Bus service file (text/x-dbus-service) and Systemd unit file (text/x-systemd-unit).
How do I open a .service file?
With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.
How can you tell a genuine .service file?
By the bytes at the start of the file, the signature (magic bytes): 5B 44 2D 42 55 53 20 53 65 72 76 69 63 65 5D 0A ([D-BUS Service].). On Linux and macOS, file --mime-type example.service checks the real type regardless of the extension.
Which format is .service based on?
Technically a .service file is a subtype of “Plain text document” (text/plain), so programs for that base format can often read it too.
Which MIME type belongs to .service?
The MIME type is text/x-dbus-service. In the Apache web server: AddType text/x-dbus-service .service; in nginx: types { text/x-dbus-service service; }.