diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-db/etcd/files | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-db/etcd/files')
-rw-r--r-- | dev-db/etcd/files/etcd.conf | 39 | ||||
-rw-r--r-- | dev-db/etcd/files/etcd.confd | 7 | ||||
-rw-r--r-- | dev-db/etcd/files/etcd.initd | 54 | ||||
-rw-r--r-- | dev-db/etcd/files/etcd.service | 11 | ||||
-rw-r--r-- | dev-db/etcd/files/etcd.tmpfiles.d.conf | 2 |
5 files changed, 113 insertions, 0 deletions
diff --git a/dev-db/etcd/files/etcd.conf b/dev-db/etcd/files/etcd.conf new file mode 100644 index 000000000000..3f34434e8e7c --- /dev/null +++ b/dev-db/etcd/files/etcd.conf @@ -0,0 +1,39 @@ +# For an explanation of the options please see: +# https://github.com/coreos/etcd/blob/master/Documentation/configuration.md#etcd-configuration +# +# The directory to store log and snapshot. +# If you change this you have to make sure the directory exists at +# the new path and has the correct permissions. +# data_dir = "/var/lib/etcd" + +# name = "default-name" +# addr = "127.0.0.1:4001" +# bind_addr = "127.0.0.1:4001" +# ca_file = "" +# cert_file = "" +# cors = [] +# cpu_profile_file = "" +# discovery = "http://etcd.local:4001/v2/keys/_etcd/registry/examplecluster" +# http_read_timeout = 10 +# http_write_timeout = 10 +# key_file = "" +# peers = [] +# peers_file = "" +# max_cluster_size = 9 +# max_result_buffer = 1024 +# max_retry_attempts = 3 +# snapshot = true +# verbose = false +# very_verbose = false + +[peer] +addr = "127.0.0.1:7001" +bind_addr = "127.0.0.1:7001" +# ca_file = "" +# cert_file = "" +# key_file = "" + +#[cluster] +# active_size = 9 +# remove_delay = 1800.0 +# sync_interval = 5.0 diff --git a/dev-db/etcd/files/etcd.confd b/dev-db/etcd/files/etcd.confd new file mode 100644 index 000000000000..4592dac08d56 --- /dev/null +++ b/dev-db/etcd/files/etcd.confd @@ -0,0 +1,7 @@ +# Name of this node in the etcd cluster. +ETCD_NAME=etcd + +# Path to the data directory. +ETCD_DATA_DIR=/var/lib/etcd + +ETCD_OPTS="" diff --git a/dev-db/etcd/files/etcd.initd b/dev-db/etcd/files/etcd.initd new file mode 100644 index 000000000000..d8134438c856 --- /dev/null +++ b/dev-db/etcd/files/etcd.initd @@ -0,0 +1,54 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +SVCNAME=etcd +PIDPATH=/var/run/${SVCNAME} +PIDFILE=${PIDPATH}/${SVCNAME}.pid +LOGPATH=/var/log/${SVCNAME} +DATADIR=/var/lib/${SVCNAME} +USER=$SVCNAME + +depend() { + need net + need localmount + after bootmisc +} + +start() { + if [ ! -d "$PIDPATH" ] ; then + mkdir -p "$PIDPATH" + chown $USER:$USER "$PIDPATH" + fi + if [ ! -d "$LOGPATH" ] ; then + mkdir -p "$LOGPATH" + chown $USER:$USER "$LOGPATH" + fi + if [ ! -d "$ETCD_DATA_DIR" ] ; then + mkdir -p "$ETCD_DATA_DIR" + chown $USER:$USER "$ETCD_DATA_DIR" + fi + + ebegin "Starting $SVCNAME" + start-stop-daemon --start \ + --pidfile "$PIDFILE" \ + --user $USER \ + --chdir "$ETCD_DATA_DIR" \ + -1 "$LOGPATH/$SVCNAME.log" \ + -2 "$LOGPATH/$SVCNAME.err" \ + --background \ + --make-pidfile \ + --exec /usr/bin/etcd -- \ + -name=$ETCD_NAME \ + -data-dir="$ETCD_DATA_DIR" \ + $ETCD_OPTS + eend $? "Failed to start $SVCNAME" +} + +stop() { + ebegin "Stopping $SVCNAME" + start-stop-daemon --stop --pidfile $PIDFILE + eend $? "Failed to stop $SVCNAME" + rm -f "$PIDFILE" +} diff --git a/dev-db/etcd/files/etcd.service b/dev-db/etcd/files/etcd.service new file mode 100644 index 000000000000..8c4663d03234 --- /dev/null +++ b/dev-db/etcd/files/etcd.service @@ -0,0 +1,11 @@ +[Unit] +Description=etcd + +[Service] +User=etcd +PermissionsStartOnly=true +Environment=ETCD_DATA_DIR=/var/lib/etcd +Environment=ETCD_NAME=%m +ExecStart=/usr/bin/etcd +Restart=always +RestartSec=10s diff --git a/dev-db/etcd/files/etcd.tmpfiles.d.conf b/dev-db/etcd/files/etcd.tmpfiles.d.conf new file mode 100644 index 000000000000..721e9c9161a3 --- /dev/null +++ b/dev-db/etcd/files/etcd.tmpfiles.d.conf @@ -0,0 +1,2 @@ +d /var/lib/etcd 0755 etcd etcd - - +d /var/run/etcd 0755 etcd etcd - - |