-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from Oefenweb/add-1604-support
Add support for Ubuntu 16.04
- Loading branch information
Showing
12 changed files
with
113 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# tasks file for supervisor | ||
--- | ||
- name: configure | initd | update script | ||
template: | ||
src: etc/init.d/supervisor.j2 | ||
dest: /etc/init.d/supervisor | ||
owner: "{{ supervisor_system_user }}" | ||
group: "{{ supervisor_system_group }}" | ||
mode: 0755 | ||
notify: restart supervisor | ||
tags: | ||
- supervisor-service-upstart-update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# tasks file for supervisor | ||
--- | ||
- name: configure | systemd | update script | ||
template: | ||
src: templates/lib/systemd/system/supervisor.j2 | ||
dest: /lib/systemd/system/supervisor.service | ||
owner: "{{ supervisor_system_user }}" | ||
group: "{{ supervisor_system_group }}" | ||
mode: 0644 | ||
register: _update_systemd_script | ||
notify: restart supervisor | ||
tags: | ||
- supervisor-service-systemd-update | ||
|
||
- name: service | systemd | reload | ||
command: systemctl daemon-reload | ||
when: _update_systemd_script | changed | ||
tags: | ||
- supervisor-service-systemd-reload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# {{ ansible_managed }} | ||
# | ||
DAEMON_OPTS="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
; {{ ansible_managed }} | ||
|
||
[Unit] | ||
Description=Start/stop supervisor daemon and its configured subprocesses | ||
After=network.target | ||
|
||
[Service] | ||
Type=simple | ||
EnvironmentFile={{ supervisor_default_file }} | ||
PermissionsStartOnly=true | ||
ExecStartPre=/usr/bin/test -x {{ supervisor_install_prefix }}/supervisord | ||
ExecStartPre=/usr/bin/install -d \ | ||
-o {{ supervisor_system_user }} \ | ||
-g {{ supervisor_system_group }} \ | ||
-m 0755 \ | ||
{{ supervisor_supervisord_logfile | dirname }} | ||
ExecStart={{ supervisor_install_prefix }}/supervisord -n -c {{ supervisor_configuration_file }} $DAEMON_OPTS | ||
ExecStop={{ supervisor_install_prefix }}/supervisorctl -c {{ supervisor_configuration_file }} shutdown | ||
KillMode=process | ||
ExecReload={{ supervisor_install_prefix }}/supervisorctl -c {{ supervisor_configuration_file }} reload | ||
PIDFile={{ supervisor_supervisord_pidfile }} | ||
Restart=on-failure | ||
RestartSec={{ supervisor_supervisord_restart_sec }}s | ||
User={{ supervisor_system_user }} | ||
Group={{ supervisor_system_group }} | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters