Commit 6311ad81 authored by bow's avatar bow
Browse files

Add tasks for main service deployment using systemd

parent cff94371
......@@ -56,3 +56,9 @@
- name: create config file
template: src=sentinel.conf.j2 dest={{ sentinel_dep_conf }} owner={{ sentinel_user }} group={{ sentinel_group }} mode=0400
- name: create systemd service file
template: src=sentinel.service.j2 dest=/etc/systemd/system/sentinel.service
- name: start sentinel service
service: name=sentinel state=started
Description=A flexible database for next generation sequencing metrics
ExecStart=/usr/bin/java -Dconfig.file={{ sentinel_dep_conf }} -jar {{ sentinel_dep_jar }}
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
WorkingDirectory={{ sentinel_deployment_dir }}
User={{ sentinel_user }}
Group={{ sentinel_user }}
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