4259 links
  • Arnaud's links
  • Home
  • RSS Feed
  • Tag cloud
  • Login
search: tag:init — newest first
  • GitHub - just-containers/s6-overlay: s6 overlay for containers (includes execline, s6-linux-utils & a custom init)
    December 24, 2018 - permalink - https://github.com/just-containers/s6-overlay
    docker init pid1
  • s6-overlay/README.md at master · just-containers/s6-overlay
    June 4, 2018 - permalink - https://github.com/just-containers/s6-overlay/blob/master/README.md
    docker init s6
  • Colourful ! systemd vs sysVinit Linux Cheatsheet
    June 4, 2015 - permalink - http://linoxide.com/linux-command/systemd-vs-sysvinit-cheatsheet/
    init systemd
  • scripts/kibana4_init at master · akabdog/scripts
    March 26, 2015 - permalink - https://github.com/akabdog/scripts/blob/master/kibana4_init
    init kibana
  • debian init script

    apt-get install debian-goodies && checkrestart

    via Doo

    February 11, 2015 - permalink - https://links.infomee.fr/shaare/ZiMfVA
    debian init
  • Init script for Graphite carbon-cache

    [Summary, full note in Shaarli]
    Init script (/etc/init.d/carbon-cache) for Graphite's carbon-cache daemon, by Jeremy Chalmer, written for Ubuntu 11.10 with start-stop-daemon.

    • LSB header: Provides carbon-cache, Required-Start/Stop $remote_fs $syslog, Default-Start 2 3 4 5, Default-Stop 0 1 6.
    • Enable with: update-rc.d carbon-cache defaults
    • Set USER in /opt/graphite/conf/carbon.conf to the owner of /opt/graphite/storage/: carbon-cache runs as that user.
    • GRAPHITE_HOME=/opt/graphite, DAEMON=$GRAPHITE_HOME/bin/carbon-cache.py, hard-coded PIDFILE=/opt/graphite/storage/carbon-cache-a.pid (adapt if several carbon-cache instances run). Exits 99 if the daemon isn't executable. Carbon logs in /opt/graphite/storage/log/carbon-cache-*.
    • do_start: start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON --test -- start (already running = 1), then the real start (failure = 2).
    • do_stop: start-stop-daemon --stop --signal 2 --retry 5 --quiet --pidfile $PIDFILE, then remove the PID file.
    • Actions: start, stop, restart (stop then start), status (kill -0 on the PID from the PID file); otherwise usage {start|stop|restart|status}, exit 3.
    September 11, 2014 - permalink - https://gist.github.com/chalmerj/1492384
    carbon graphite init
  • Writing an init script for a Java application | Gustavo Straube

    [Summary, full note in Shaarli]
    Comment créer un script d'init (/etc/init.d) pour une application Java (java -jar).

    Structure du script (sh) :
    - check_status : trouve le PID de l'appli ; renvoie 0 si elle ne tourne pas.
    - start : si déjà lancée, "already started" et exit 1 ; sinon
    java -jar /path/to/application.jar >> /path/to/logfile 2>&1 &
    - stop : si arrêtée, "already stopped" et exit 1 ; sinon kill -9 $pid
    - status : "Application is started" / "stopped".
    - case "$1" in start|stop|status|restart|reload (= stop puis start), sinon usage : $0 {start|stop|restart|reload|status}.

    EDIT : la recherche de PID de l'article ne marchait pas pour moi :
    s=ps -C 'java -jar /path/to/application.jar' -o pid h
    remplacée par :
    s=$(pgrep --full 'une string unique qui identifie la command line pour lancer mon jar')

    Attention : check_status fait "return $s", donc un PID passe par le code retour (limité à 0-255) ; à corriger si on réutilise le script.

    January 2, 2014 - permalink - http://gustavostraube.wordpress.com/2009/11/05/writing-an-init-script-for-a-java-application/
    init initd jar java script