Skip to content

I need a service enabled after dinit installation and before reboot, while dinitctl doesn't enable services until reboot. #186

Answered by davmac314
Folaht asked this question in Q&A
Discussion options

You must be logged in to vote

From the manual page for dinitctl:

      enable  Persistently enable a waits-for dependency between two services.
              This is much like add-dep but it also starts the dependency if
              the dependent is started (without explicit activation, so the
              dependency will stop if the dependent stops), and it creates a
              symbolic link in the directory specified via the waits-for.d
              directive in the service description (there must be only one
              such directive) so that the dependency will survive between
              sessions.

That last bit tells you how you can enable a service for the next boot - create a symbolic link (or any …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Folaht
Comment options

Answer selected by Folaht
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Question C-dinitctl Things about dinitctl C-dinit-service Things about dinit-service Downstream related Things about downstream projects that officially support Dinit.
2 participants