Skip to content

Commit

Permalink
Add OpenRC template to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
3dde committed Feb 21, 2024
1 parent 5bcb284 commit 305a284
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 305a284

Please sign in to comment.