7b61b3df9d
While here few cleanup: - Cleanup plist - Avoid extending PORTDOCS in post-install target we prefer to separate targets and variable definitions - Remove useless post-install - Recommend configuration in ${PREFIX}/etc instead of /etc, the binary also look for its configurations files in the directory - Cleanup EOL spaces in pkg-message PR: 196126 [1] Submitted by: Bradley T. Hughes <bradleythughes@fastmail.fm> Approved by: maintainer [1]
40 lines
1.4 KiB
Text
40 lines
1.4 KiB
Text
==================================================================
|
|
|
|
1) You can start and stop the turnserver manually. But, if you want
|
|
to enable turnserver as an automatically started system service,
|
|
you have to:
|
|
|
|
a) Create and edit %%PREFIX%%/etc/turnserver.conf file.
|
|
Use %%PREFIX%%/etc/turnserver.conf.default as an example.
|
|
|
|
b) For user accounts settings, if using the turnserver
|
|
with authentication: create and edit %%PREFIX%%/etc/turnuserdb.conf
|
|
file, or set up PostgreSQL or MySQL or Redis database for user accounts.
|
|
Use %%PREFIX%%/etc/turnuserdb.conf.default as example for flat file DB,
|
|
or use %%DATADIR%%/schema.sql as database schema,
|
|
or use %%DATADIR%%/schema*redis as Redis
|
|
database description.
|
|
|
|
d) add line turnserver_enable="YES" to /etc/rc.conf.
|
|
|
|
e) If you are using a non-default PREFIX (other than /usr/local),
|
|
then edit /usr/local/etc/rc.d/turnserver file, according to
|
|
your system settings.
|
|
|
|
f) Restart the system or run the command:
|
|
$ %%PREFIX%%/etc/rc.d/turnserver start
|
|
|
|
2) If you do not want the turnserver to be a system service,
|
|
then you can start/stop it "manually", using the "turnserver"
|
|
executable with appropriate options (see the documentation).
|
|
|
|
3) To create database schema, use schema in file %%DATADIR%%/schema.sql.
|
|
|
|
4) For additional information, run:
|
|
|
|
$ man turnserver
|
|
$ man turnadmin
|
|
$ man turnutils
|
|
|
|
==================================================================
|
|
|