Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring latent / blueprints #4

Open
2 of 8 tasks
skrupler opened this issue Feb 2, 2017 · 0 comments
Open
2 of 8 tasks

Refactoring latent / blueprints #4

skrupler opened this issue Feb 2, 2017 · 0 comments

Comments

@skrupler
Copy link
Owner

skrupler commented Feb 2, 2017

Hook, line and sinker

Current latent version suffers from alot of bugs thus I am going to refactor it and add some useful things to better handle crashes and hickups without having to reboot the entire machine to "get it right".

To be implemented

  • helpers/setup.sh - basic setup, takes user input if settings.conf is missing any arguments
  • check dependencies
  • get user information if any critical ones are missing from conf/settings.conf (saves stuff too)
  • helpers/functions.sh - global functions needed by this suite
  • check the ip which rtorrent is bound to
  • check the actual ip on the tun/tap device
  • src/netns.sh - handles the setup of the network namespace
  • setup/tare down of netns
  • src/openvpn.sh - handles the connection of openvpn
  • src/rtorrent.sh - handles startup/shutdown etc
  • handles the connection, doesnt really do much but for sake of separation
  • latent.sh - one script to rule em all, aka the runnable one
  • probably the one callable we feed to systemd or whatever
  • cron/example.cron
  • calls the helpers/functions.sh to check if mismatch with ip and restarts rtorrent if true.

Fixes

  • check permissions on critical files
  • chmod 600 auth.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant