Skip to content

Commit

Permalink
Merge pull request #510 from 3dde/patch-1
Browse files Browse the repository at this point in the history
Add OpenRC template to README.md
  • Loading branch information
camathieu authored Feb 21, 2024
2 parents 5bcb284 + 305a284 commit 084b64a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,33 @@ client_body_buffer_size 1M;

Plik session cookies have the "secure" flag set when EnhancedWebSecurity is set so they can only be transmitted over secure HTTPS connections.

* Is there an OpenRC template for running plik as a service?

Yes (the plikuser has to be created):

```
#!/sbin/openrc-run
name=$RC_SVCNAME
description="Plik File Sharing Service"
command="/path/to/plik/server/plikd"
command_user="plikuser:plikuser"
command_background=true
directory="/path/to/plik/server"
pidfile=/run/${RC_SVCNAME}.pid
start_stop_daemon_args="--stdout /var/log/$RC_SVCNAME/${RC_SVCNAME}.log --stderr /var/log/$RC_SVCNAME/${RC_SVCNAME}.log"
depend() {
use logger dns
need net
after firewall
}
start_pre() {
checkpath --directory --owner $command_user --mode 0775 /var/log/$RC_SVCNAME
}
```

* Build failure "/usr/bin/env: ‘node’: No such file or directory"

Debian users might need to install the nodejs-legacy package.
Expand Down

0 comments on commit 084b64a

Please sign in to comment.