mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
24 lines
547 B
Text
24 lines
547 B
Text
#!/sbin/openrc-run
|
|
# Copyright 2016 Alpine Linux
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Id$
|
|
supervisor=supervise-daemon
|
|
|
|
name="$RC_SVCNAME"
|
|
description="Highly-available key-value store"
|
|
|
|
command=/usr/bin/etcd
|
|
command_args="--config-file=$ETCD_CONFIG --data-dir=$ETCD_DATA_DIR $ETCD_OPTS"
|
|
|
|
command_user="$USER:$USER"
|
|
|
|
supervise_daemon_args="--chdir $ETCD_DATA_DIR"
|
|
|
|
depend() {
|
|
need net
|
|
}
|
|
|
|
start_pre() {
|
|
checkpath -d -m 0775 -o "$command_user" "$LOGPATH"
|
|
checkpath -d -m 0775 -o "$command_user" "$ETCD_DATA_DIR"
|
|
}
|