foreman_debian 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a4d00f240208b33d87b3be3a44b99cb6609d08c
4
- data.tar.gz: dd5eb3d6b648c76387e8ed68bf2d9bddfa754247
3
+ metadata.gz: 681ae28dd832436b0930a444df0a1db94f62576f
4
+ data.tar.gz: a84e8cf5cfae2913c7922c27bf9686bcf9b2f176
5
5
  SHA512:
6
- metadata.gz: b7c8323640a152cd2a45d6fc04c2f6029e128350e36290474918cf40c39f14d5c3d4af1c136fcbd2f03d0e48e2cda07990fd83859b692781f16cc55803b41a50
7
- data.tar.gz: 9f2df567ed93751d1d1563f4ad99ec155e63395e52595b650e27f7d01d8529920c167fec194f3dd78ae026896ea853437bf42c5486d3ead8c55286b460424d3d
6
+ metadata.gz: cc7f1dec23350d83aef4ba1e628af03148c42413d889ad0e13d4c5f733ec15212d8550158d7696a4fc6d805906b5fb59a3c655262ce4757afa49aa34efaed77e
7
+ data.tar.gz: fb95fb4655880cb68970085282e904a1f42fa195d182aa02e27db8a7a742af35f0c6c062b371f11c93c2e5f5a34d32ee366bb30b40a35a649bd0096db9388af5
@@ -0,0 +1,57 @@
1
+ #!/bin/sh
2
+
3
+ # Autogenerated by foreman
4
+
5
+ ### BEGIN INIT INFO
6
+ # Provides: <%= name %>
7
+ # Required-Start: $syslog
8
+ # Required-Stop: $syslog
9
+ # Default-Start: 2 3 4 5
10
+ # Default-Stop: 0 1 6
11
+ # Short-Description: <%= name %>
12
+ # Description: <%= description %>
13
+ ### END INIT INFO
14
+
15
+ NAME=<%= Shellwords.escape name %>
16
+ DESC=<%= Shellwords.escape description %>
17
+ DAEMON=<%= Shellwords.escape script %>
18
+ DAEMON_USER=<%= Shellwords.escape user %>
19
+ PIDDIR=<%= Shellwords.escape pidfile.dirname.to_s %>
20
+ PIDFILE=<%= Shellwords.escape pidfile.to_s %>
21
+
22
+ test -x ${DAEMON} || exit 0
23
+ set -e
24
+ . /lib/lsb/init-functions
25
+
26
+
27
+ case "${1}" in
28
+ start)
29
+ log_daemon_msg "Starting ${DESC}" "${NAME}"
30
+ mkdir -p ${PIDDIR}
31
+ if (start-stop-daemon --start --make-pidfile --background --pidfile $PIDFILE --chuid $DAEMON_USER --exec $DAEMON -- <%= Shellwords.join arguments %>); then
32
+ log_end_msg 0
33
+ else
34
+ log_end_msg 1
35
+ fi
36
+ ;;
37
+ stop)
38
+ log_daemon_msg "Stopping ${DESC}" "${NAME}"
39
+ if (start-stop-daemon --stop --oknodo --retry 20 --pidfile $PIDFILE --chuid $DAEMON_USER); then
40
+ log_end_msg 0
41
+ else
42
+ log_end_msg 1
43
+ fi
44
+ ;;
45
+ status)
46
+ status_of_proc -p ${PIDFILE} ${DAEMON} ${NAME}
47
+ ;;
48
+ restart)
49
+ ${0} stop
50
+ ${0} start
51
+ ;;
52
+ *)
53
+ echo "Usage: ${0} {start|stop|status|restart}" >&2
54
+ ;;
55
+ esac
56
+
57
+ exit 0
@@ -0,0 +1,5 @@
1
+ # Autogenerated by foreman
2
+ check process <%= Shellwords.escape name %> with pidfile <%= Shellwords.escape script_pidfile.to_s %>
3
+ group <%= app %>
4
+ start program = "<%= script_path %> start"
5
+ stop program = "<%= script_path %> stop"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_debian
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - cargomedia
@@ -103,6 +103,8 @@ files:
103
103
  - lib/foreman_debian/initd/script.rb
104
104
  - lib/foreman_debian/monit/engine.rb
105
105
  - lib/foreman_debian/template.rb
106
+ - templates/initd_script.erb
107
+ - templates/monit_config.erb
106
108
  homepage: https://github.com/cargomedia/foreman-debian
107
109
  licenses:
108
110
  - MIT