Giter VIP home page Giter VIP logo

xdaemon's Introduction

About

There is a wonderful tiny bash script (thanks to Jouke Witteveen for this beauty!) that turns X server into a daemon. Here is how it works: when you run this script, it starts X server and catches USR1 signal. When this signal is received, it means X server is ready to be used by clients, e.g. you can run a window manager on it, etc. This SIGUSR1 behaviour is documented in man Xserver.

So this Xdaemon script can be used by such service managing programs as Systemd or Shepherd (I use it in my Shepherd config).

This repository exists because I wanted to make a general-purpose package that can be built using The GNU Build System. Also I added Xkill script that allows to kill an X server running on a particular DISPLAY.

Building from Git

Requirements for building from git:

Run ./autogen.sh to generate the build system infrastructure. ./autogen.sh just runs autoreconf to generate “configure” script. This phase is not needed for a release that already contains “configure” and “Makefile.in” files (such a release is generated with “make dist” command).

After that, the program can be built and installed with the usual sequence of commands of the GNU Build System:

./configure
make
make install

If you are not familiar with the GNU build system, here are some comments:

  • configure phase creates final files from “.in” files (“Makefile”, “src/Xdaemon” and “src/Xkill”).
  • Actually, invoking make (before make install) does nothing by itself as there is nothing to compile – the ready-to-use scripts are generated during the configure phase.
  • Finally, make install installs scripts to /usr/local/bin or another configured directory (see “./configure -h”).

Building with Guix

This repository contains guix.scm file which can be used to build the development version of this package with GNU Guix.

A Guix package for the latest release can be found in my guix-config repository.

xdaemon's People

Contributors

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