diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2017-06-08 14:50:13 +0200 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2017-06-08 14:50:44 +0200 |
commit | 1a1337abdd64e6318c1382bafb6923c16073969a (patch) | |
tree | 4b0e555ee40a139976462f119b5766527bcb0cdd /sys-cluster/zetcd/files/zetcd.initd | |
parent | sci-electronics/linsmith: amd64 stable wrt bug #620998 (diff) | |
download | gentoo-1a1337abdd64e6318c1382bafb6923c16073969a.tar.gz gentoo-1a1337abdd64e6318c1382bafb6923c16073969a.tar.bz2 gentoo-1a1337abdd64e6318c1382bafb6923c16073969a.zip |
sys-cluster/zetcd: Initial version
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'sys-cluster/zetcd/files/zetcd.initd')
-rw-r--r-- | sys-cluster/zetcd/files/zetcd.initd | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sys-cluster/zetcd/files/zetcd.initd b/sys-cluster/zetcd/files/zetcd.initd new file mode 100644 index 000000000000..93b3a48b43ad --- /dev/null +++ b/sys-cluster/zetcd/files/zetcd.initd @@ -0,0 +1,19 @@ +#!/sbin/openrc-run +# Copyright 2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +description="Zetcd Zookeeper frontend for etcd" +pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"} +user=${user:-${SVCNAME}} +group=${group:-${SVCNAME}} + +command="/usr/bin/zetcd" +command_args="${command_args}" +command_background="true" +start_stop_daemon_args="--user ${user} --group ${group} \ + --stdout /var/log/${SVCNAME}/${SVCNAME}.log \ + --stderr /var/log/${SVCNAME}/${SVCNAME}.log" + +start_pre() { + checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}" +} |