Skip to content

Commit

Permalink
add tailon aliases and groups!
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-musallam committed Sep 23, 2018
1 parent f4e00a6 commit a460bf4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion services/tailon.service
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a460bf4

Please sign in to comment.