mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-11 00:07:51 +03:00
Update to EAPI8. Update init.d/conf.d files to use correct options and new config file, update tmpfiles.d configuration. Closes: https://bugs.gentoo.org/891397 Closes: https://bugs.gentoo.org/829695 Closes: https://bugs.gentoo.org/766015 Closes: https://github.com/gentoo/gentoo/pull/29172 Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com> Signed-off-by: Zac Medico <zmedico@gentoo.org>
28 lines
580 B
Plaintext
28 lines
580 B
Plaintext
#!/sbin/openrc-run
|
|
# Copyright 1999-2023 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
pidfile=/run/${RC_SVCNAME}.pid
|
|
LOGPATH=/var/log/${RC_SVCNAME}
|
|
command_user=${RC_SVCNAME}
|
|
command=/usr/bin/etcd
|
|
command_args="${ETCD_OPTS}"
|
|
command_background=true
|
|
start_stop_daemon_args="
|
|
-1 ${LOGPATH}/${RC_SVCNAME}.log
|
|
-2 ${LOGPATH}/${RC_SVCNAME}.err"
|
|
|
|
depend() {
|
|
need net
|
|
need localmount
|
|
after bootmisc
|
|
}
|
|
|
|
start() {
|
|
if [ ! -d "${LOGPATH}" ] ; then
|
|
mkdir -p "${LOGPATH}"
|
|
chown "${command_user}:${command_user}" "${LOGPATH}"
|
|
fi
|
|
default_start
|
|
}
|