[bug] OpenBSD RC script does not work #864
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#864
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Your setup
From source
Extra details
OpenBSD
Version
v3.12.1
PostgreSQL version
16.4
What were you trying to do?
Attempting to run Akkoma as a service (daemon) on OpenBSD using the provided RC script.
What did you expect to happen?
Anything.
What actually happened?
Nothing (the script does not work).
But I have this patch which represents the changes we made to the script to get it working on our OpenBSD:
--detached
, so we simply removed it.--detached
would supposedly do, we add therc_bg
key and set its value toYES
.rc_exec
line.I didn't want to make a whole fork or whatever to submit this as a pull request, but if I should then let me know.
Logs
No response
Severity
I cannot use it as easily as I'd like
Have you searched for this issue?
Yeah,
--detached
was removed in elixir 1.9.To be frank, nobody looked at the OpenBSD instrcutions and files since they were added. Good to hear they are still at least mostly working and thanks for taking a look and fixing it. Were there any issues in the install instructions besides the rc file?
Regarding the change, the
cd
was also removed, butmix
must run in the akkoma source directory. How is or can this be achieved now? I can't test it but suppose it’s good otherwise, thx!I cannot say what FloatingGhost prefers, but if you end up changing more than just a few lines in the rc file down the line, I suspect a proper PR will be better.
I'll be honest, I'm not sure we looked at the install instructions.
We have always configured our systems so that the Akkoma source directory and the akkoma user's home directory are one and the same. I'm not sure if you have a particular reason for why they should not be the same, or if it just ends up being
/home/_akkoma/akkoma/
by coincidence because of the way the docs specify to clone the repository.I believe the most idiomatic way to do it would be to add:
daemon_execdir="/home/_akkoma/akkoma"
directly below thedaemon_user
line.That will match where the source ends up when you follow the install instructions for OpenBSD.
Yeah, current install instructions clone into an
akkoma
folder inside the home dir.User home directories typically end up containing a bunch of files like
.bashrc
,.bash_history
(or the equivalent for$SHELL
),.profile
, and more config files for e.g. editors. If the git repo of the backend source is the home directory, they’ll show up as "untracked" files and may by accident be removed via agit clean
, so a subdirectory is safer as a general recommendation. It also allows e.g. moving uploads and static dir out of the repository easily (just using a different subdir in$HOME
)The
daemon_execdir
option seems perfect, thank you!