Commit 81da00db authored by Dan Thomson's avatar Dan Thomson

[#1] Add systemd file so that we can easily start and stop our plone instance

parent 3be74a5f
Pipeline #2613 failed with stage
in 11 minutes and 40 seconds
......@@ -196,3 +196,18 @@
when: port_update.changed
become: yes
become_user: "{{ plone_user }}"
- name: Install systemd service file
src: etc/systemd/system/plone.service.j2
dest: /etc/systemd/system/plone-{{ plone_instance_name }}.service
owner: root
group: root
mode: 0644
register: systemd_upload
become: yes
- name: Update systemd
command: systemctl daemon-reload
when: systemd_upload.changed
become: yes
Description=Plone "{{ plone_instance_name }}" instance
PIDFile={{ plone_var_path }}/"
EnvironmentFile=-/etc/sysconfig/plone-{{ plone_instance_name }}
EnvironmentFile=-/etc/default/plone-{{ plone_instance_name }}
ExecStart={{ plone_install_path }}/{{ plone_instance_name }}/bin/plonectl start
ExecRestart={{ plone_install_path }}/{{ plone_instance_name}}/bin/plonectl restart
ExecStop={{ plone_install_path }}/{{ plone_instance_name}}/bin/plonectl stop
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment