Issue:
The instructions on how to run the release version of Plik server can be updated as follows:
On FreeBSD you can run the linux binary using the linux compatability layer:
service linux enable
fetch https://github.com/root-gg/plik/releases/download/1.4.2/plik-server-1.4.2-linux-amd64.tar.gz
tar xzvf plik-server-1.4.2-linux-amd64.tar.gz
cd plik-server-1.4.2/server
./plikd
Note:
- "service linux enable" enables the linuxulator
- "fetch" is a built in alternative to wget. Naturally, wget is available with a simple "pkg install wget".
- I have been running Plik in a FreeBSD jail in production for two weeks without any problems and have moved many gigabytes of data. I use nginx as a reverse proxy for tls termination.
I created my own service script to start plikd. I've included it in this issue if you want to add it to your project. I license the RC script using the MIT license. To run plikd as a service you need to a) add a plik user, b) save the plik server directory to /usr/local/bin/plik, c) save the config file to /usr/local/etc/plikd.cfg, d) save the plik service script to /usr/local/etc/rc.d/ and make it executable with chmod +x /usr/local/etc/rc.d/plik
"plik" service rc script:
#!/bin/sh
# PROVIDE: plikd
# REQUIRE: LOGIN NETWORKING
# KEYWORD: shutdown
. /etc/rc.subr
name="plikd"
rcvar="plikd_enable"
load_rc_config "${name}"
: ${plikd_enable:="NO"}
: ${plikd_config:="/usr/local/etc/plikd.cfg"}
pidfile="/var/run/plikd.pid"
command="/usr/sbin/daemon"
command_args="-P ${pidfile} -S -T plikd -u plik /usr/local/bin/plik/server/plikd --config=${plikd_config}"
run_rc_command "$1"
Issue:
The instructions on how to run the release version of Plik server can be updated as follows:
On FreeBSD you can run the linux binary using the linux compatability layer:
Note:
I created my own service script to start plikd. I've included it in this issue if you want to add it to your project. I license the RC script using the MIT license. To run plikd as a service you need to a) add a plik user, b) save the plik server directory to /usr/local/bin/plik, c) save the config file to /usr/local/etc/plikd.cfg, d) save the plik service script to /usr/local/etc/rc.d/ and make it executable with chmod +x /usr/local/etc/rc.d/plik
"plik" service rc script: