canonical / pebble

Take control of your internal daemons!
GNU General Public License v3.0
136 stars 51 forks source link

Allow service to be stopped while in 1s "starting" state #410

Open benhoyt opened 2 months ago

benhoyt commented 2 months ago

Per https://github.com/canonical/pebble/issues/408, if you try to stop a service while it's in the 1-second "starting" status, it will fail with the error "cannot start service while starting". We should probably make the service manager a bit cleverer in this case and allow the stop to succeed -- the fact that it's just been started shouldn't mean you can't stop it.

benhoyt commented 1 month ago

This is somewhat related to #240