From ArchWiki
Revision as of 15:26, 28 November 2012 by Uberspot (Talk | contribs) (Init script)

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 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

Tango-view-refresh-red.pngThis article or section is out of date.Tango-view-refresh-red.png

Reason: Arch Linux has moved to systemd, so rc.conf is no longer used. (Discuss in Talk: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