Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm writing a Juju charm that installs some new packages, some of which require a system restart.

In particular, daemontools-run installs an Upstart file, which would start svcanboot on the next system restart. There's no "service" file, so "service svscanboot start" wouldn't work.

Is there a way my charm can either: request a system restart; or, start the service itself?

share|improve this question

The correct way to start an Upstart service is start service-name like:

start svscan

The Juju charm can execute this command in the install hook (or any other appropriate hook).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.