forked from External/ergo
1 KiB
1 KiB
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 toNO. Whether to runergoat system start.ergo_user, defaults toergo. Run using this user.ergo_group, defaults toergo. Run using this group.ergo_chdir, defaults to/var/db/ergo. Path to the working directory for the server. Should be writable forergo_user.ergo_conf, defaults to/usr/local/etc/ergo/ircd.yaml. Config file path. Make sureergo_usercan 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.