Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.