Skip to content

Run script after/before suspending/hibernating and when system starts/shuts down #349

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

You must be logged in to vote

Is there a folder to place scripts that will be executed in those moments?
I know that elogind can do something at least for suspending/hibernating.
Can you use dinit instead?

No, dinit has no direct support for any kind of power management other than for shutdown. This functionality can be provided by other packages.

For what it's worth the Dinit documentation is quite complete. If something isn't mentioned in the documentation then it's not a feature.

For example I found out about /etc/local.d here

That's nothing to do with dinit itself. Any functionality for executing things from /etc/local.d is provided by the distribution (possibly they implement it as a dinit service, but I don'…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@realroot2185
Comment options

@davmac314
Comment options

Answer selected by realroot2185
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants