From a460bf45b31c2b6114610c8ff8af18df45d016e2 Mon Sep 17 00:00:00 2001 From: Ahmed Musallam Date: Sun, 23 Sep 2018 13:33:57 -0500 Subject: [PATCH] add tailon aliases and groups! --- playbook.yml | 11 +++++++++-- services/tailon.service | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/playbook.yml b/playbook.yml index 86b7dd4..47c6d1d 100644 --- a/playbook.yml +++ b/playbook.yml @@ -130,13 +130,20 @@ tags: tailon copy: src="binaries/tailon/tailon" dest="/usr/bin/tailon" + - name: Install systemd service for Tailon + tags: tailon + template: + src: services/tailon.service + dest: /usr/lib/systemd/system/tailon.service + mode: u=rwx,g=rwx,o=rwx # dev box, remember :) + - name: Changing perm of "/usr/bin/tailon", adding "+x" tags: tailon file: dest=/usr/bin/tailon mode=01777 # dev box, remember :) # for now, this service only starts tailon serever - # TODO - make service server stopable. - name: Start the systemd AEM deamon for tailon 4605 tags: tailon - systemd: name="tailon.service" state=started enabled=yes daemon_reload=yes no_block=yes + daemon_reload: yes + systemd: name="tailon.service" state=restarted enabled=yes daemon_reload=yes no_block=yes async: 0 diff --git a/services/tailon.service b/services/tailon.service index e6311ee..c75140a 100644 --- a/services/tailon.service +++ b/services/tailon.service @@ -2,6 +2,6 @@ Description="Tailon Service" [Service] -ExecStart=/usr/bin/tailon "{{author_folder}}/crx-quickstart/logs/*.log" "{{publish_folder}}/crx-quickstart/logs/*.log" "/etc/httpd/logs/*.log" +ExecStart=/usr/bin/tailon "alias=author,group=Author Logs,{{author_folder}}/crx-quickstart/logs/*.log" "alias=publish,group=Publish Logs,{{publish_folder}}/crx-quickstart/logs/*.log" "alias=dispatcher,group=Dispatcher Logs,/etc/httpd/logs/*" Type=simple RemainAfterExit=yes