.service File servizio D-Bus
Testo e codice sorgente
| Tipo MIME | text/x-dbus-service text/x-systemd-unit |
|---|---|
| Descrizione | File servizio D-Bus |
| Categoria | Testo e codice sorgente |
| Firma (magic bytes) | 5B 44 2D 42 55 53 20 53 65 72 76 69 63 65 5D 0A ([D-BUS Service].) |
| Basato su | text/plain |
Domande frequenti
Che cos’è un file .service?
L’estensione .service viene usata per diversi formati: File servizio D-Bus (text/x-dbus-service) e File unità systemd (text/x-systemd-unit).
Come apro un file .service?
Con qualsiasi editor di testo: Notepad++, Visual Studio Code, oppure gedit e vim su Linux. Il file contiene testo leggibile, eventualmente codice sorgente o configurazione.
Come si riconosce un vero file .service?
Dai byte all’inizio del file, la firma (magic bytes): 5B 44 2D 42 55 53 20 53 65 72 76 69 63 65 5D 0A ([D-BUS Service].). Su Linux e macOS, file --mime-type example.service verifica il tipo reale indipendentemente dall’estensione.
Su quale formato si basa .service?
Tecnicamente un file .service è un sottotipo di «Documento in testo semplice» (text/plain), quindi i programmi per quel formato di base spesso riescono a leggerlo.
Quale tipo MIME corrisponde a .service?
Il tipo MIME è text/x-dbus-service. Nel server web Apache: AddType text/x-dbus-service .service; in nginx: types { text/x-dbus-service service; }.