1
0
Fork 0

app-misc/repositorg: improved init script

Package-Manager: Portage-3.0.0, Repoman-2.3.23
Signed-off-by: Horea Christian <chr@chymera.eu>
This commit is contained in:
Horea Christian 2020-08-14 02:40:05 -04:00
parent 215909d721
commit febcfc07bc
No known key found for this signature in database
GPG Key ID: EAA9223EE3BB378A
3 changed files with 19 additions and 2 deletions

View File

@ -1,3 +1,7 @@
14 Aug 2020; <chymera@gentoo.org> files/repositorg_uuid.initd,
repositorg-0.1.ebuild:
app-misc/repositorg: improved init script
*repositorg-0.1 (19 Jun 2020)
19 Jun 2020; <chymera@gentoo.org> +repositorg-0.1.ebuild:

View File

@ -8,7 +8,13 @@ supervisor=supervise-daemon
pidfile=/var/run/repositorg_uuid.pid
command="/usr/bin/repositorg_uuid"
command_args="${repositorg_args}"
command_user="${RC_SVCNAME#*.}"
output_log="/var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"
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"
}

View File

@ -39,3 +39,10 @@ src_test() {
./"$i" || die "Test $i failed"
done
}
pkg_postinst() {
if use !systemd ; then
elog "To be able to run repositorg_uuid as your user (recommended), make a copy of the init script:"
elog " cp /etc/init.d/repositorg_uuid /etc/init.d/repositorg_uuid.<YOUR_USER_NAME>"
fi
}