Giter VIP home page Giter VIP logo

iroffer-dinoex-utils's Introduction

#Iroffer dinoex init script and utils

This repository contain both an init script and a configuration generation script for iroffer dinoex

The init script also work (for basic functionalities start, stop,โ€ฆ) with the old mainline iroffer

Init scritp

Running make install will install the initscript and create a tree view under /etc/iroffer/ corresponding to configuration generated :

  • . the current dir, containing config generation script (optional but quite handy then manager severals bots)
  • config/ contening generated (or static) bots config and initscript config file iroffer.default for enabling or disabling chrooting
  • list/ for bots files listing
  • log/ for bots logs
  • pid/ for bots pids files
  • state/ for bots state files
  • telnet/ (optional) for bots telnet port files

Most of this files need to be under the same tree view in order to be readable/writable by iroffer then chrooted

Chroot can be enable or disabled by editing the file /etc/iroffer/config/iroffer.default. If chroot is enabled, beware of changing any path of bots config file.

If several chroot are needed, just add several init script with different names and a tree view /etc/init_script_name for each init script (and a /etc/init_script_name/config/init_script_name.default for chroot config).

Fonctionnalities

You can call /etc/init.d/iroffer command Botname to do command on botname only or just call /etc/init.d/iroffer command to do command on all bots.

The list of possible command is :

  • start
  • stop
  • restart
  • reload
  • status
  • reconnect (force bot to change server, handy during netsplits)
  • genconf (call the generation script if used)
  • telnet (can only be called with a bot name as parameter : open a telnet admin console)

Generation script

It's a quite simple python script writed from the sample config file of iroffer. Functionalities are hadded then I need them.

The file sample.py give an example of bot config generation script.

I will try to keep the script update with the last corresponding config file of the iroffer dinoex repository.

It's very handing because it's allow to share a part of the configuration (for example, the adminhost list) between severals bots. So only one file need to be edited and the conf regenerated.

iroffer-dinoex-utils's People

Contributors

nitmir avatar

Watchers

 avatar  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.