Difference between revisions of "Znc"

From ArchWiki
Jump to: navigation, search
m (Bad URL too*)
Line 21: Line 21:
  
 
  wget -O /etc/rc.d/znc https://raw.github.com/kylef/ark/master/znc-system-wide/znc.rcd
 
  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
 
  wget -O /etc/conf.d/znc https://raw.github.com/kylef/ark/master/znc-system-wide/znc.conf
  

Revision as of 05:31, 1 September 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:

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

External links