Skip to content

Commit 5ea219f

Browse files
authored
Merge pull request #16 from rvdh/debian8-systemd
Debian8 systemd
2 parents fe8d1c9 + 23463b8 commit 5ea219f

4 files changed

Lines changed: 44 additions & 18 deletions

File tree

README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ redhat init.d or upstart depending on the service provider.
6767
works on RedHat 6. Setting `service_provider` to `redhat`
6868
will now deploy the init.d service file, unless you specifically
6969
set `service_template` etc.
70-
`systemd` will create a systemd service on RedHat 7.
70+
`systemd` will create a systemd service on RedHat 7 and Debian 8.
7171

7272
* `manage_service_file`
7373
Whether to override the system service file if it exists.
@@ -264,3 +264,23 @@ uwsgi::emperor_options:
264264
no-orphans: 'true'
265265
```
266266

267+
## Contributers
268+
269+
Contributions will be gratefully accepted. Please go to the project page,
270+
fork the project, make your changes locally and then raise a pull request.
271+
Details on how to do this are available at
272+
https://guides.github.com/activities/contributing-to-open-source.
273+
274+
### Additional Contributers
275+
276+
**Release** | **PR/Issue/commit** | **Contributer**
277+
-------------|-------------------------------------------------------------------------------------------------------------------|----------------------------------------
278+
1.3.0 | [Add systemd support](https://github.com/rvdh/puppet-uwsgi/pull/14) | [@andy-s-clark](https://github.com/andy-s-clark)
279+
1.3.0 | [Make tyrant mode configurable](https://github.com/rvdh/puppet-uwsgi/pull/12) | [@TravellingGuy](https://github.com/TravellingGuy)
280+
1.3.0 | [Additional Options](https://github.com/rvdh/puppet-uwsgi/pull/11) | [@elmerfud](https://github.com/elmerfud)
281+
1.2.0 | [Support repeated application options by passing an array of values](https://github.com/rvdh/puppet-uwsgi/pull/6) | [@rayl](https://github.com/rayl)
282+
1.1.0 | [Fix typo in Upstart script](https://github.com/rvdh/puppet-uwsgi/pull/5) | [@Kodapa](https://github.com/Kodapa)
283+
1.1.0 | [Support multiple env options](https://github.com/rvdh/puppet-uwsgi/pull/4) | [@kimor79](https://github.com/kimor79)
284+
1.0.1 | [Fix logging when using init.d](https://github.com/rvdh/puppet-uwsgi/pull/3) | [@kimor79](https://github.com/kimor79)
285+
1.0.0 | [init.d support](https://github.com/rvdh/puppet-uwsgi/pull/2) | [@kimor79](https://github.com/kimor79)
286+
0.9.0 | | [@jarshwah](https://github.com/jarshwah)

manifests/init.pp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
# The service provider. Default: 'upstart'
4343
# 'upstart' is required for the default service_file, and
4444
# works on RedHat 6.
45-
# 'systemd' works on RedHat 7.
45+
# 'systemd' works on RedHat 7 and Debian 8.
4646
#
4747
# [*manage_service_file*]
4848
# Whether to override the system service file if it exists. Default: true
@@ -192,13 +192,13 @@
192192
}
193193

194194
file { $service_file_real:
195-
ensure => $file_ensure,
196-
owner => 'root',
197-
group => 'root',
198-
mode => $service_file_mode_real,
199-
replace => $manage_service_file,
200-
content => template($service_template_real),
201-
require => Package[$package_name]
195+
ensure => $file_ensure,
196+
owner => 'root',
197+
group => 'root',
198+
mode => $service_file_mode_real,
199+
replace => $manage_service_file,
200+
content => template($service_template_real),
201+
require => Package[$package_name]
202202
}
203203
$required_files = [ $config_file, $service_file_real ]
204204

@@ -272,7 +272,7 @@
272272
content => template('uwsgi/uwsgi_logrotate.erb'),
273273
}
274274
}
275-
'absent', 'purge', 'purged': {
275+
default: {
276276
file { '/etc/logrotate.d/uwsgi':
277277
ensure => 'absent',
278278
}

metadata.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "engage-uwsgi",
3-
"version": "1.3.0",
4-
"author": "jarshwah <josh.smeaton@gmail.com>",
2+
"name": "vandenhof-uwsgi",
3+
"version": "1.3.1",
4+
"author": "Rick van den Hof <rick@vandenhof.eu>",
55
"summary": "Install and configure uwsgi in Emperor mode",
66
"license": "MIT",
7-
"source": "https://github.com/Engage/puppet-uwsgi",
8-
"project_page": "https://github.com/Engage/puppet-uwsgi",
9-
"issues_url": "https://github.com/Engage/puppet-uwsgi/issues",
7+
"source": "https://github.com/rvdh/puppet-uwsgi",
8+
"project_page": "https://github.com/rvdh/puppet-uwsgi",
9+
"issues_url": "https://github.com/rvdh/puppet-uwsgi/issues",
1010
"dependencies": [
1111
{
1212
"name": "puppetlabs-stdlib",

templates/uwsgi_systemd.service.erb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@
55
#
66
[Unit]
77
Description=uWSGI Emperor
8-
After=network.target
8+
After=syslog.target
99

1010
[Service]
11-
Type=simple
1211
ExecStart=<%= @binary_directory %>/uwsgi --die-on-term --ini <%= @config_file %>
12+
# Requires systemd version 211 or newer
13+
RuntimeDirectory=uwsgi
14+
Restart=always
15+
KillSignal=SIGQUIT
16+
Type=notify
17+
StandardError=syslog
18+
NotifyAccess=all
1319

1420
[Install]
1521
WantedBy=multi-user.target

0 commit comments

Comments
 (0)