mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 13:03:31 -04:00
sys-cluster/pcs-0.10.7: initial ebuild
Package-Manager: Portage-3.0.11, Repoman-3.0.2 Signed-off-by: Andrea Postiglione <andrea.postiglione@gmail.com>
This commit is contained in:
27
sys-cluster/pcs/files/pcsd-daemon.initd
Normal file
27
sys-cluster/pcs/files/pcsd-daemon.initd
Normal file
@@ -0,0 +1,27 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 2019-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
name="pcsd-daemon"
|
||||
description="PCS GUI and remote configuration interface (Ruby)"
|
||||
command=/usr/lib/pcsd/pcsd
|
||||
command_args="${pcsd_args}"
|
||||
|
||||
PIDFILE=/var/run/$name.pid
|
||||
|
||||
start() {
|
||||
nc=0
|
||||
ebegin "Starting $description"
|
||||
|
||||
mkdir -p /var/run
|
||||
|
||||
start-stop-daemon --start -q --exec $command $command_args \
|
||||
--pidfile "${PIDFILE}" --make-pidfile --background
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping $description"
|
||||
start-stop-daemon --stop -q --pidfile "${PIDFILE}"
|
||||
eend $?
|
||||
}
|
||||
Reference in New Issue
Block a user