Znc

From ArchWiki
Revision as of 01:29, 15 August 2012 by Kylef (Talk | contribs) (Storing ZNC's datadir in /etc doesn't follow FHS)

Jump to: navigation, search

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:

 pacman -S znc

2. Create a znc group and user

 groupadd -r znc
 useradd -r -g znc -d /var/lib/znc -s /bin/false -c znc 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
 wget -O /etc/conf.d/znc https://raw.github.com/kylef/ark/master/znc-system-wide/conf.rcd

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

External links