Use RuntimeDirectory option in Bookwyrm unit to create dir for socket
This commit is contained in:
parent
a3e9cf0296
commit
95ae572dcb
1 changed files with 3 additions and 1 deletions
|
@ -15,7 +15,6 @@ with pkgs . kernelmaft ;
|
||||||
[Service]
|
[Service]
|
||||||
|
|
||||||
ExecStartPre=${coreutils-full}/bin/ln -sf ${bookwyrm}/var/lib/bookwyrm/VERSION /var/lib/bookwyrm/
|
ExecStartPre=${coreutils-full}/bin/ln -sf ${bookwyrm}/var/lib/bookwyrm/VERSION /var/lib/bookwyrm/
|
||||||
ExecStartPre=${coreutils-full}/bin/mkdir /run/bookwyrm
|
|
||||||
ExecStart=${bookwyrm}/bin/bookwyrm
|
ExecStart=${bookwyrm}/bin/bookwyrm
|
||||||
|
|
||||||
WorkingDirectory=/var/lib/bookwyrm
|
WorkingDirectory=/var/lib/bookwyrm
|
||||||
|
@ -23,6 +22,9 @@ with pkgs . kernelmaft ;
|
||||||
# Creates /var/lib/bookwyrm directory
|
# Creates /var/lib/bookwyrm directory
|
||||||
StateDirectory=bookwyrm
|
StateDirectory=bookwyrm
|
||||||
|
|
||||||
|
# Creates /run/bookwyrm directory
|
||||||
|
RuntimeDirectory=bookwyrm
|
||||||
|
|
||||||
User=bookwyrm
|
User=bookwyrm
|
||||||
Group=bookwyrm
|
Group=bookwyrm
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue