Coder Social home page Coder Social logo

voltverine's Introduction

voltverine

Shutdown your machine when certain conditions are met.

configuration

In theory you should not need a configuration in many cases. Yet, not all plugins will work properly without a configuration.

voltverine uses a YAML file for its configuration, with currently only two possible entries: action and plugins. While action is a literal string, representing an action from voltverine.actions to be executed, plugins can be either a list or a hash of plugins from voltverine.plugins. See the following examples:

---
action: LogindPoweroff
plugins:
  - LogindSessions
  - LogindInhibitors

This will set the action to LogindPoweroff and enable the LogindSessions and LogindInhibitors plugins, without further configuration of them.

---
plugins:
  NoShutdownFile:
    filename: /some/path

This does not set an action and voltverine will use the default action (LogindPowerof). This also enables the NoShutdownFile plugin and configures it to watch for a file called /some/path.

voltverine's People

Contributors

evgeni avatar schrottfresse avatar

Watchers

 avatar James Cloos avatar Holger Levsen avatar  avatar  avatar

voltverine's Issues

generic command plugin

The plugin should be able to execute a normal command and act depending on it's exit code.

Depends on #3

traffic plugin

the plugin should check whether there is active network traffic and forbid shutdown if there is

config: traffic threshold, network device to check (if not all)

depends on #3

cli/cron mode

As a user I want to be able to run voltverine from a shell or cron.

At least the following options should be available:

  • verbose mode, where all plugins report their doings and decisions
  • dry-run mode, where no actuall action is taken
  • alternative config file (if any)

plugin interface

As a developer I don't want to hardcode checks into voltverine. A plugin API/interface should exist.

The API should allow the plugin to take a decision (shutdown, no-shutdown or "dunno"). It also should allow the plugin to pass some more information, like a no-retry delay if it's clear the action will take some time and a shutdown is not possible.

daemon mode

As an user I want to run voltverine as a daemon, so it will analyze the machine constantly.

generic dbus plugin

The plugin should be able to do a dbus call (either system or user bus, but probably only system is relevant) and decide the action based on the result.

Depends on #3

plugin loader

As an user I want to add own plugins without polluting the main voltverine install. A path should be given via cfg/cli. The loaded plugins can be listed.

Depends on #3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.