Difference between revisions of "Znc"

From ArchWiki
Jump to: navigation, search
(Init script: style fix)
(External links: style fix https://wiki.archlinux.org/index.php/Help:Style#.22See_also.22_sections)
Line 32: Line 32:
 
  rc.d {start|stop|restart} znc
 
  rc.d {start|stop|restart} znc
  
== External links ==
+
== See also ==
  
* [http://wiki.znc.in/ZNC ZNC (website)]
+
* [http://wiki.znc.in/ZNC ZNC's website]

Revision as of 16:15, 4 November 2012

ZNC is an advanced IRC bouncer that is left connected so an IRC client can disconnect/reconnect without loosing the chat session.

Init script

By default, ZNC does not include an daemon init script (like those usually found in /etc/rc.d/). It maybe preferable to run ZNC as a daemon:

1. Install znc from the Official Repositories.

2. Create a znc group and user

groupadd -r znc
useradd -r -g znc -d /var/lib/znc -s /bin/false -c znc znc
mkdir -p /var/lib/znc
chown znc:znc /var/lib/znc

3. Install rc.d and conf.d script:

wget -O /etc/rc.d/znc https://raw.github.com/kylef/ark/master/znc-system-wide/znc.rcd
chmod a+x /etc/rc.d/znc
wget -O /etc/conf.d/znc https://raw.github.com/kylef/ark/master/znc-system-wide/znc.conf

4. Generate ZNC config:

rc.d makeconf znc

To make ZNC start on boot, add ZNC to DAEMONS in /etc/rc.conf.

Start and stop the ZNC daemon as usual by running:

rc.d {start|stop|restart} znc

See also