3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-23 11:12:44 +01:00
ergo/distrib/bsd-rc
2023-03-09 11:14:29 +01:00
..
ergo Add bsd-rc init script 2023-03-09 11:09:03 +01:00
README.md add sections + usage information to bsd-rc README 2023-03-09 11:14:29 +01:00

Ergo init script for bsd-rc

Written for and tested using FreeBSD.

Installation

Copy the ergo file from this folder to /etc/rc.d/ergo, permissions should be 555.

You should create a system user for Ergo.
This script defaults to running Ergo as a user named ergo,
but that can be changed using /etc/rc.conf.

Here are all rc.conf variables and their defaults: - ergo_enable, defaults to NO. Whether to run ergo at system start. - ergo_user, defaults to ergo. Run using this user. - ergo_group, defaults to ergo. Run using this group. - ergo_chdir, defaults to /var/db/ergo. Path to the working directory for the server. Should be writable for ergo_user. - ergo_conf, defaults to /usr/local/etc/ergo/ircd.yaml. Config file path. Make sure ergo_user can read it.

This script assumes ergo to be installed at /usr/local/bin/ergo.

Usage

/etc/rc.d/ergo <command>

In addition to the obvious start and stop commands, this
script also has a reload command that sends SIGHUP to the Ergo process.