Skip to content

Refactoring latent / blueprints #4

@skrupler

Description

@skrupler

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions