const CleanShutdownJob = "" /* 177 byte string literal not displayed */
CleanShutdownJob is added to machines to ensure DHCP-assigned IP addresses are released on shutdown, reboot, or halt. See bug http://pad.lv/1348663 for more info.
const CleanShutdownJobPath = "/etc/init/juju-clean-shutdown.conf"
CleanShutdownJobPath is the full file path where CleanShutdownJob is created.
var ( InitDir = "/etc/init" // the default init directory name. )
IsRunning returns whether or not upstart is the local init system.
ListCommand returns a command that will list the services on a host.
ListServices returns the name of all installed services on the local host.
Serialize renders the conf as raw bytes.
Service provides visibility into and control over an upstart service.
Conf implements service.Service.
Exists returns whether the service configuration exists in the init directory with the same content that this Service would have if installed.
Install installs and starts the service.
InstallCommands returns shell commands to install the service.
Installed returns whether the service configuration exists in the init directory.
Name implements service.Service.
Remove deletes the service configuration from the init directory.
Restart restarts the service.
Running returns true if the Service appears to be running.
Start starts the service.
StartCommands returns shell commands to start the service.
Stop stops the service.
Validate returns an error if the service is not adequately defined.