1
0
mirror of synced 2024-12-22 21:00:20 +01:00
Horea Christian febcfc07bc
app-misc/repositorg: improved init script
Package-Manager: Portage-3.0.0, Repoman-2.3.23
Signed-off-by: Horea Christian <chr@chymera.eu>
2020-08-14 02:40:05 -04:00

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"
}