Giter VIP home page Giter VIP logo

abe's Introduction

After Boot Executor

Simple solution for automated tasks execution in Linux.

Rationale

Automated scripts execution just after your system is ready to be used can be very handy, especially if you want provide more or less stable environment to your tasks requiring running after boot time. ABE helps you here.

Installation

Copy content of this package (excluding top files, i.e. README.md and any other files available at this level) to root directory /. Add following line to /etc/inittab:

abe:23:once:/sbin/getty -inl /usr/local/sbin/abe 38400 tty8

Usage

Just put your scripts in /tasks/pending directory and make them executable. Next time you boot up your system, they will be executed in a consecutive manner (alphabetically ordered). Depending on a returned code, each script will be moved to appropriate subdirectory of /tasks - success or failure. During execution you can see the results in eighth console (use Ctrl+Alt+F8 to show it).

You can apply additional requirements to your scripts by preceding program loader defined in shebang with path to abe-run and condition, which can be:

  • required-kernel-version, tested against uname -r,
  • run-as-first-task, enforcing reboot if it is not the first executed script.

If required-kernel-version is other than the current running one, ABE looks for grub entry which title ends with required-kernel-version text and reboots into it. If such entry does not exist, script will be moved to /tasks/skipped directory.

Shebang example

#!/usr/local/bin/abe-run 2.6.32 /bin/sh

Notes

Proper handling of kernel version dependency in scripts, i.e. automatically rebooting into needed kernel, requires grub and strict naming convention of grub menu entries - they should end with their kernel release text (the one, which is returned by uname -r if you boot into them).

USE AT YOUR OWN RISK! NO WARRANTY!

Bugs

If you find any bug, then please create new issue in GitHub and describe it there.

Author

Przemysław Pawełczyk <[email protected]>

abe's People

Contributors

przemoc avatar

Watchers

 avatar

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.