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:
parent
215909d721
commit
febcfc07bc
@ -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)
|
*repositorg-0.1 (19 Jun 2020)
|
||||||
|
|
||||||
19 Jun 2020; <chymera@gentoo.org> +repositorg-0.1.ebuild:
|
19 Jun 2020; <chymera@gentoo.org> +repositorg-0.1.ebuild:
|
||||||
|
@ -8,7 +8,13 @@ supervisor=supervise-daemon
|
|||||||
pidfile=/var/run/repositorg_uuid.pid
|
pidfile=/var/run/repositorg_uuid.pid
|
||||||
|
|
||||||
command="/usr/bin/repositorg_uuid"
|
command="/usr/bin/repositorg_uuid"
|
||||||
command_args="${repositorg_args}"
|
|
||||||
command_user="${RC_SVCNAME#*.}"
|
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"
|
||||||
|
}
|
||||||
|
@ -39,3 +39,10 @@ src_test() {
|
|||||||
./"$i" || die "Test $i failed"
|
./"$i" || die "Test $i failed"
|
||||||
done
|
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
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user