etc: Add FreeBSD rc.d script

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4408
This commit is contained in:
Matteo Ruina
2017-10-08 17:29:51 +00:00
committed by Jakob Borg
parent 0b5c11bf93
commit 6ffb95f6c8
2 changed files with 70 additions and 0 deletions

16
etc/freebsd-rc/README.md Normal file
View File

@@ -0,0 +1,16 @@
This directory contains an example for running Syncthing with a `rc.d` script in FreeBSD.
* Install `syncthing` in `/usr/local/bin/syncthing`.
* Copy the `syncthing` rc.d script in `/usr/local/etc/rc.d/syncthing`.
* To automatically start `syncthing` at boot time, add the following line to `/etc/rc.conf`:
```
syncthing_enable=YES
```
* Optional configuration options are:
```
syncthing_home=</path/to/syncthing/config/dir>
syncthing_log_file=</path/to/syncthing/log/file>
syncthing_user=<syncthing_user>
syncthing_group=<syncthing_group>
```
See the rc.d script for more informations.