Add net-im/dendrite
Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
This commit is contained in:
parent
c0d91e1449
commit
c7b0a3e426
6 changed files with 96 additions and 0 deletions
25
net-im/dendrite/files/dendrite.initd-r0
Normal file
25
net-im/dendrite/files/dendrite.initd-r0
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#!/sbin/openrc-run
|
||||
# Copyright 2026 Shin'ya Minazuki
|
||||
|
||||
supervisor="supervise-daemon"
|
||||
|
||||
command="/usr/sbin/${RC_SVCNAME}"
|
||||
command_args="--config /etc/${RC_SVCNAME}.yaml"
|
||||
command_user="${RC_SVCNAME}"
|
||||
command_background="true"
|
||||
pidfile="/run/${RC_SVCNAME}.pid"
|
||||
|
||||
depend() {
|
||||
# PostgreSQL is not listed here due to the SLOT mechanism
|
||||
# used by the package manager.
|
||||
# Latest stable version to date is postgresql-18
|
||||
want caddy nginx
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
if ! checkpath --file /etc/${RC_SVCNAME}.yaml -; then
|
||||
eerror "You need a configuration file to proceed"
|
||||
eerror "See /usr/sbin/dendrite-generate-config"
|
||||
fi
|
||||
eend $?
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue