Tiens tiens ça fait un quelques semaines que je suis à la recherche dune solution similaire! À tester
-
http://blog.admin-linux.org/administration/rundeck-ordonnanceur-centralise-opensource-vient-de-sortir-sa-v2-0sdn sdn !
le moins que l'on puisse dire c'est que ça ne se simplifie pas
-
http://forums.juniper.net/t5/Juniper-France-Tech-Blog/bg-p/FrenchTech#.VBKgqY3GRr4.twitter#
#
#source /lib/lsb/init-functions
. /lib/lsb/init-functions
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
GRAPHITE_HOME=/opt/graphite
NAME=carbon-cache
DESC=carbon-cache
#Carbon has its own logging facility, by default in /opt/graphite/storage/log/carbon-cache-*
DAEMON=$GRAPHITE_HOME/bin/carbon-cache.py
PIDFILE=/opt/graphite/storage/carbon-cache-a.pid
SCRIPTNAME=/etc/init.d/$NAME
if [ ! -x "$DAEMON" ]; then {
echo "Couldn't find $DAEMON or not executable"
exit 99
}
fi
[ -f /etc/default/rcS ] && . /etc/default/rcS
#
#
do_start()
{
# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started
# Test to see if the daemon is already running - return 1 if it is.
start-stop-daemon --start --pidfile $PIDFILE \
--exec $DAEMON --test -- start > /dev/null || return 1
# Start the daemon for real, return 2 if failed
start-stop-daemon --start --pidfile $PIDFILE \
--exec $DAEMON -- start > /dev/null || return 2
}
#
#
do_stop() {
# 0 if daemon has been stopped
# 1 if daemon was already stopped
# 2 if daemon could not be stopped
# other if a failure occurred
log_daemon_msg "Stopping $DESC" "$NAME"
start-stop-daemon --stop --signal 2 --retry 5 --quiet --pidfile $PIDFILE
RETVAL="$?"
[ "$RETVAL" = 2 ] && return 2
# Delete the exisitng PID file
if [ -e "$PIDFILE" ]; then {
rm $PIDFILE
}
fi
return "$RETVAL"
}
case "$1" in
start)
[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
do_start
case "$?" in
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
esac
;;
stop)
[ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
do_stop
case "$?" in
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
esac
;;
restart)
log_daemon_msg "Restarting $DESC" "$NAME"
do_stop
case "$?" in
0|1)
do_start
case "$?" in
0) log_end_msg 0 ;;
1) log_end_msg 1 ;; # Old process is still running
) log_end_msg 1 ;; # Failed to start
esac
;;
)
log_end_msg 1
;;
| esac ;; status) if [ -s $PIDFILE ]; then pid= cat $PIDFILEkill -0 $pid >/dev/null 2>&1 if [ "$?" = "0" ]; then echo "$NAME is running: pid $pid." RETVAL=0 else echo "Couldn't find pid $pid for $NAME." RETVAL=1 fi else echo "$NAME is stopped (no pid file)." RETVAL=1 fi ;; *) echo "Usage: $SCRIPTNAME {start |
stop | restart | status}" >&2 exit 3 ;; esac |
|---|
-
https://gist.github.com/chalmerj/1492384fini les vacances, c'est la reprise :'(
-
https://links.infomee.fr/?15SkpwHow to pretty print a json string :
cat pref.json | python -m json.tool
for uuoc nazi ;) :
< pref.json python -m json.tool
or
python -m json.tool < pref.json
-
http://stackoverflow.com/questions/352098/how-can-i-pretty-print-jsonpetit rappel
cheatsheet bien faite
-
http://pentestmonkey.net/cheat-sheet/ssh-cheat-sheetà regarder à la rentrée
via arnaudb
-
http://www.lowlevelmanager.com/2014/07/monitorama-conference.htmlPermet de se créer des cartes avec des repères
alternativ to gmap
-
http://umap.openstreetmap.fr/fr/Des idées de livres à lire après un monde sans fin
-
http://www.habitudes-zen.fr/2014/pourquoi-je-lis-une-douzaine-de-recommandations-de-livres/Pour avoir ruby compilé readline (en installant avec rbenv)
-
http://vvv.tobiassjosten.net/ruby/readline-in-ruby-with-rbenv/4 oeufs
80g de farine
125g desucre
1/4 litre de lait
80g beurre
20g Poudre d'amandes
15-20 minutes à 210 degres, saupoudrer de sucre à la sortie du four
-
https://links.infomee.fr/?6VgeagPour le fun et le learning : faire du tcp avec python / scapy
via sametmax
-
http://jvns.ca/blog/2014/08/12/what-happens-if-you-write-a-tcp-stack-in-python/vg qui parle des ssii
"y'a tellement de turn-over en plus que t'es souvent le 800° mec qui configure une plateforme, donc tu passe dérrière des mecs qui des fois ont fumé toute la forêt amazonienne avant de prendre une décision stratégique."
-
https://links.infomee.fr/?iJ5ALg