Skip to content

Commit

Permalink
Update service unit and logging directory
Browse files Browse the repository at this point in the history
  • Loading branch information
icarosadero committed Oct 1, 2023
1 parent c435dbb commit 52380ab
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
10 changes: 0 additions & 10 deletions pyduino.service

This file was deleted.

2 changes: 1 addition & 1 deletion pyduino/slave.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import socket
from typing import Any, Optional, Dict

logging.basicConfig(filename='slave.log', filemode='w', level=logging.DEBUG)
logging.basicConfig(filename='/var/log/pyduino/slave.log', filemode='w', level=logging.DEBUG)

STEP = 1/8.0
HEADER_DELAY = 5
Expand Down
6 changes: 6 additions & 0 deletions reactors/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@
- name: Deploying and Testing
block:

- name: Create Log Folder
file:
path: /var/log/pyduino
state: directory
mode: 0777

- name: Daemon Reload
shell: systemctl daemon-reload

Expand Down
4 changes: 2 additions & 2 deletions reactors/pyduino.service
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Unit]
Description=Daemon for pyduino server.
After=network-online.target
Wants=network-online.target
After=network.target
Wants=network.target

[Service]
Restart=on-failure
Expand Down

0 comments on commit 52380ab

Please sign in to comment.