febcfc07bc
Package-Manager: Portage-3.0.0, Repoman-2.3.23 Signed-off-by: Horea Christian <chr@chymera.eu>
21 lines
580 B
Plaintext
21 lines
580 B
Plaintext
#!/sbin/openrc-run
|
|
# Copyright 2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
name="repositorg daemon"
|
|
description=""
|
|
supervisor=supervise-daemon
|
|
pidfile=/var/run/repositorg_uuid.pid
|
|
|
|
command="/usr/bin/repositorg_uuid"
|
|
command_user="${RC_SVCNAME#*.}"
|
|
|
|
output_log="/var/log/${RC_SVCNAME}.log"
|
|
|
|
start_pre() {
|
|
# (Commands necessary to prepare to start the service)
|
|
# Ensure that our dirs are correct
|
|
checkpath --file --owner ${command_user}:${command_user} --mode 775 \
|
|
"/var/log/${RC_SVCNAME}.log"
|
|
}
|