Skip to content

Can't get SWS with systemd on ArchLinux #227

Closed Answered by joseluisq
bubnenkoff asked this question in Q&A
Discussion options

You must be logged in to vote

First, what you are doing instead of binding SWS to a particular port, you are binding to a file descriptor (--fd 0 ). This is great when you want to sandbox programs like SWS via systemd for example.
All of this is called socket activation and you can read more about it in the docs.

Regarding the error. It was about SWS complaining about the default root public dir not being available because most probably when you used the environment etc_default_static-web-server file, it was not found by systemd when starting your SWS service, and therefore the environment variables were not loaded. That's why SWS was using the defaults like root public dir, etc.
What I can recommend is that if you wa…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@joseluisq
Comment options

Answer selected by joseluisq
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested v2 v2 release
2 participants
Converted from issue

This discussion was converted from issue #226 on June 22, 2023 15:32.