org.cloudhoist:upstart

Pallet - parent pom

License

License

GroupId

GroupId

org.cloudhoist
ArtifactId

ArtifactId

upstart
Last Version

Last Version

0.7.0-alpha.2
Release Date

Release Date

Type

Type

jar
Description

Description

Pallet - parent pom
Source Code Management

Source Code Management

https://github.com/pallet/upstart-crate

Download upstart

How to add to project

<!-- https://jarcasting.com/artifacts/org.cloudhoist/upstart/ -->
<dependency>
    <groupId>org.cloudhoist</groupId>
    <artifactId>upstart</artifactId>
    <version>0.7.0-alpha.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.cloudhoist/upstart/
implementation 'org.cloudhoist:upstart:0.7.0-alpha.2'
// https://jarcasting.com/artifacts/org.cloudhoist/upstart/
implementation ("org.cloudhoist:upstart:0.7.0-alpha.2")
'org.cloudhoist:upstart:jar:0.7.0-alpha.2'
<dependency org="org.cloudhoist" name="upstart" rev="0.7.0-alpha.2">
  <artifact name="upstart" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.cloudhoist', module='upstart', version='0.7.0-alpha.2')
)
libraryDependencies += "org.cloudhoist" % "upstart" % "0.7.0-alpha.2"
[org.cloudhoist/upstart "0.7.0-alpha.2"]

Dependencies

compile (2)

Group / Artifact Type Version
org.clojure : clojure jar 1.2.1
org.cloudhoist : pallet jar 0.7.1

test (1)

Group / Artifact Type Version
org.cloudhoist : pallet-crates-test jar 0.7.1

Project Modules

There are no modules declared in this project.

Repository · Issues · API docs · Annotated source · Release Notes

A pallet crate to install and configure upstart.

Dependency Information

:dependencies [[com.palletops/upstart-crate "0.8.0-alpha.2"]]

Releases

Pallet Crate Version Repo GroupId
0.8.0-beta.6 0.8.0-alpha.2 clojars com.palletops Release Notes Source
0.7.2 0.7.0-alpha.2 clojars com.palletops Release Notes Source

Usage

The upstart configuration does not replace the system init as PID 1.

The server-spec function provides a convenient pallet server spec for upstart. It takes a single map as an argument, specifying configuration choices, as described below for the settings function. You can use this in your own group or server specs in the :extends clause.

(require '[pallet/crate/upstart :as upstart])
(group-spec my-upstart-group
  :extends [(upstart/server-spec {})])

While server-spec provides an all-in-one function, you can use the individual plan functions as you see fit.

The settings function provides a plan function that should be called in the :settings phase. The function puts the configuration options into the pallet session, where they can be found by the other crate functions, or by other crates wanting to interact with upstart.

The install function is responsible for actually installing upstart.

The configure function writes the upstart configuration file, using the form passed to the :config key in the settings function.

To create an upstart job, you can write a method for supervisor-config-map.

(defmethod supervisor-config-map [:riemann :runit]
  [_ {:keys [run-command service-name user] :as settings} options]
  {:service-name service-name
   :run-file {:content (str "#!/bin/sh\nexec chpst -u " user " " run-command)}})

Support

On the group, or #pallet on freenode irc.

License

Licensed under EPL

Copyright 2013 Hugo Duncan.

org.cloudhoist

pallet

Versions

Version
0.7.0-alpha.2
0.7.0-alpha.1
0.5.0
0.4.3
0.4.2
0.4.1
0.4.0
0.4.0-beta-1