Unbreank yanic service

This commit is contained in:
Markus 2017-11-09 21:44:38 +01:00
parent af446ed4e9
commit 6770035a61
5 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ Description=yanic
[Service]
Type=simple
User=yanic
ExecStart=/opt/go/bin/yanic -config /etc/yanic.conf
ExecStart=/opt/go/bin/yanic serve --config /etc/yanic.conf
Restart=always
RestartSec=5s
Environment=PATH=/usr/bin:/usr/local/bin

View File

@ -10,7 +10,7 @@
notify: Restart yanic
- name: Configure yanic
template: src=config.toml dest=/etc/yanic.conf
template: src=config.toml.j2 dest=/etc/yanic.conf
notify: Restart yanic
- name: Create directories
@ -20,7 +20,7 @@
- /var/lib/yanic
- name: Install system unit
template: src=yanic.service dest=/lib/systemd/system/yanic.service
copy: src=yanic.service dest=/lib/systemd/system/yanic.service
notify:
- Reload systemd
- Restart yanic
@ -29,7 +29,7 @@
service: name=yanic enabled=yes
- name: Install system publish unit
template: src={{ item }} dest=/lib/systemd/system/{{ item }}
template: src={{ item }}.j2 dest=/lib/systemd/system/{{ item }}
when: yanic_publisher
with_items:
- yanic-publish.service