summaryrefslogtreecommitdiffstats
path: root/network/etcd/rc.etcd
diff options
context:
space:
mode:
Diffstat (limited to 'network/etcd/rc.etcd')
-rw-r--r--network/etcd/rc.etcd37
1 files changed, 0 insertions, 37 deletions
diff --git a/network/etcd/rc.etcd b/network/etcd/rc.etcd
deleted file mode 100644
index abd95ede02..0000000000
--- a/network/etcd/rc.etcd
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/sh
-
-ETCD_USER=etcd
-ETCD_BIN=/usr/bin/etcd
-ETCD_LOG_FILE=/var/log/etcd/etcd.log
-ETCD_CONFIG_FILE=/etc/etcd/etcd.conf.yml
-
-etcd_start() {
- echo "Starting the etcd service: $ETCD_BIN"
- su - $ETCD_USER -c "$ETCD_BIN --config-file $ETCD_CONFIG_FILE >> $ETCD_LOG_FILE 2>&1 &"
-}
-
-etcd_stop() {
- echo "Stoping the etcd service: $ETCD_BIN"
- killall etcd
-}
-
-etcd_restart() {
- etcd_stop
- sleep 1
- etcd_start
-}
-
-case "$1" in
- 'start')
- etcd_start
- ;;
- 'stop')
- etcd_stop
- ;;
- 'restart')
- etcd_restart
- ;;
- *)
- echo "Usage: $0 start|stop|restart"
- ;;
-esac