-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pebble doesn't report errors starting startup-enabled services #167
Comments
Yeah, I've noticed this too, and it's unexpected not to get any feedback (unless you specify Do you think it should log an error, or wait (up to 1 second per service, I think it is) and exit |
It doesn't report I think it should log an error right away - because errors like I'm not sure what Pebble's usual behaviour is, but I think exiting |
if the service is critical to the plan then it should have
|
This was actually fixed by the snapd state changes we pulled across, now that the task runner logs task failures: e494ff2#diff-e8b7c8da8654dde95838cfa0cc4b497cdd32050ea3a1bf0640e6404303aef0d6R294 Additionally, we do slightly more logging with #257. We can consider behaviour changes like having "on-failure: shutdown" default services not starting up make Pebble not start. But that needs a spec and further considering. This issue is just about reporting the errors, which is now in place, so closing. |
I have the following simple "service" at
root/log.sh
:and the following Pebble layer:
If I don't have permission to run
/root/log.sh
:then I would expect Pebble to report an error when I go
pebble run
, but it doesn't report anything:The text was updated successfully, but these errors were encountered: