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] [Service]
Type=simple Type=simple
User=yanic User=yanic
ExecStart=/opt/go/bin/yanic -config /etc/yanic.conf ExecStart=/opt/go/bin/yanic serve --config /etc/yanic.conf
Restart=always Restart=always
RestartSec=5s RestartSec=5s
Environment=PATH=/usr/bin:/usr/local/bin Environment=PATH=/usr/bin:/usr/local/bin

View File

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