Run command once daemon from service is ready #411
-
After resolving #410 I noticed that now service in question exits with status 0 It makes sense since first command is starting daemon and second does a thing and exists. My question is how to keep monitoring daemon (first command) but still run command after daemon is ready (or the way I do it is to wait couple seconds and then run second command) Instead I used created another service and used
But it gives wrong impression like something went wrong, should I just accept it? What is a proper way to run command after daemon from service has started? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
maybe it seems like feature bloat but |
Beta Was this translation helpful? Give feedback.
-
If you don't want a service to show as stopped once the process terminates, use a |
Beta Was this translation helpful? Give feedback.
If you don't want a service to show as stopped once the process terminates, use a
type = scripted
service. (Again, this is covered in the documentation).