mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
The attached script updates a couple things which effectively is the same as the current model however it follows the modular nature of the declarative syntax. Changes: * Removes -p which is implied via pidfile= * Sets user via command_user * Moves the daemon options to command_args_background Closes: https://bugs.gentoo.org/828073 Signed-off-by: Brian Evans <grknight@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
23 lines
637 B
Plaintext
23 lines
637 B
Plaintext
#!/sbin/openrc-run
|
|
# Copyright 1999-2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License, v2 or later
|
|
|
|
name=${RC_SVCNAME}
|
|
|
|
fbhomedir="/var/run/firebird"
|
|
fblogdir="/var/log/firebird"
|
|
pidfile="${fbhomedir}/firebird.pid"
|
|
command="/usr/sbin/fbguard"
|
|
command_args="-forever"
|
|
command_args_background="-daemon -pidfile $pidfile"
|
|
command_user="${FBUSER:-firebird}:${FBGROUP:-firebird}"
|
|
|
|
depend() {
|
|
need net
|
|
}
|
|
|
|
start_pre() {
|
|
checkpath -q -d -m 0770 -o ${FBUSER:-firebird}:${FBGROUP:-firebird} ${fbhomedir} || return 1
|
|
checkpath -q -d -m 0770 -o ${FBUSER:-firebird}:${FBGROUP:-firebird} ${fblogdir} || return 1
|
|
}
|