How do you restart a juju service?
Well, if this was a Juju config option for the charm, I think the charm should restart it automatically. If not, it probably should be added to the config (but the README says "This charm doesn't offer any configuration as Alice doesn't have any command line configuration tools, everything is done through the browser.")
Related videos on Youtube
mfisch
I'm an Ubuntu member and enthusiast, working at Canonical by day and working on Ubuntu on my own time at night. My work at Canonical has included Ubuntu touch, the Nexus7 image, Ubuntu for Android, test automation, and the Vodafone webbook.
Updated on September 18, 2022Comments
-
mfisch almost 2 years
I manually changed a config option in a juju service (alice-irc), now I want to restart it, how do I do so? I rebooted the instance figuring that would do it but no luck. I then tried running the start script that is in
/var/lib/juju/units/alice-irc-0/charm/hooks
and it failed with a bunch of errors. So what's the right solution here?EDIT: The start script did actually start the service, but dumped errors out due to the juju-log calls. I'd still like to know what the "right" solution is here.
-
prophecy201 over 11 yearsThe Service is running on its own instance as a Service. Can't you ssh into the instance and restart the service manually? A Reboot should do the this, too. Maybe be your config changes are the problem? Please post the error messages.
-
bohdan_trotsenko over 11 years
sudo service <servicename> restart
restarts the mentioned service... -
mfisch over 11 yearsThat is only true for services with upstart jobs, it is not universal.
-