# Dinit
-v0.6.0 (development release)
+v0.8.2 (development release)
This is the README for Dinit, the service manager and init system. It is
intended to provide an overview; For full documentation please check the manual pages.
(although it may then immediately restart, depending on how it and its
dependents are configured).
-Use the "-s" switch to talk the "system" instance of Dinit, rather than a
-personal instance, e.g:
+If stopping a service would also require a dependent service to stop, a warning
+will be issued and the `--force` option will be required.
- dinitctl -s start mysql # start system mysql service
+When run as root, dinitctl (by default) communicates with the system instance of
+Dinit. Otherwise, it communicates with a user (personal) instance. This can be
+overridden (using "-u" or "-s" for the user or system instance, respectively), but
+note that regular users will generally lack the required permission to communicate
+with the system instance.
+
+Here is an example command for starting a service:
+
+ dinitctl start mysql # start mysql service
For complete details on the command line, use:
it from changing state either due to a dependency/dependent or a direct
command:
- dinitctl -s start --pin mysql # start mysql service, pin it as "started"
- dinitctl -s stop mysql # issues stop, but doesn't take effect due to pin
- dinitctl -s unpin mysql # release pin; service will now stop
+ dinitctl start --pin mysql # start mysql service, pin it as "started"
+ dinitctl stop mysql # issues stop, but doesn't take effect due to pin
+ dinitctl unpin mysql # release pin; service will now stop
You can pin a service in the stopped state in order to make sure it doesn't
get started accidentally (either via a dependency or directly). You can also
Finally, you can list the state of all loaded services:
- dinitctl -s list
+ dinitctl list
This may result in something like the following: