Where Does Dinit Store Services on Linux?
Dinit system and user service directories with control socket paths.
Last updated
Dinit searches ordered directory lists for service descriptions. System dirs span etc, run and lib trees. User dirs hang off config home with their own fallbacks.
The control socket is separate from config. System default sits in dev with user sockets under runtime dirs. Env files and flags tune both halves.
Where Dinit stores this, by platform
/etc/dinit.d
Ordered system service dirs with file name as service name. User trees under config home plus dedicated user folders. Control socket in dev for system, runtime dir for user. Env file under etc dinit.
Frequently asked questions
How do I back up Dinit services?
Copy custom service files out of the system and user dirs with the services stopped. The control socket is runtime only. Restoring means putting the files back and reloading the daemon.
How are service files resolved?
File name equals service name in the first matching dir of the ordered list. User trees live under config home plus dedicated user folders. A dir flag reorders everything for testing.
Notice an outdated path? Let us know.