Skip to content

Commit

Permalink
added auto-restart
Browse files Browse the repository at this point in the history
  • Loading branch information
Magicmanfoli committed Sep 17, 2018
1 parent 6a2b1cd commit cf37375
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ReMailer.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Requires=network-online.target

[Service]
Type=idle
Restart=on-failure
RestartSec=30s
WorkingDirectory=/home/pi/ReMailer
ExecStart=/home/pi/.local/share/virtualenvs/ReMailer-A3UyrjCG/bin/python main.py

Expand Down
Binary file modified __pycache__/Handlers.cpython-37.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

# TODO read from arguments or environment
t_restart = 1800
save_mode = True
save_mode = False


def read_login() -> Tuple[str, str]:
Expand Down

0 comments on commit cf37375

Please sign in to comment.