Difference between revisions of "Znc"

From ArchWiki
Jump to: navigation, search
(Storing ZNC's datadir in /etc doesn't follow FHS)
m (Missing step)
Line 9: Line 9:
 
1. Install:
 
1. Install:
  
  pacman -S znc
+
pacman -S znc
  
 
2. Create a znc group and user
 
2. Create a znc group and user
  
  groupadd -r znc
+
groupadd -r znc
  useradd -r -g znc -d /var/lib/znc -s /bin/false -c znc znc
+
useradd -r -g znc -d /var/lib/znc -s /bin/false -c znc znc
  chown znc:znc /var/lib/znc
+
mkdir -p /var/lib/znc
 +
chown znc:znc /var/lib/znc
  
 
3. Install rc.d and conf.d script:
 
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/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
+
wget -O /etc/conf.d/znc https://raw.github.com/kylef/ark/master/znc-system-wide/conf.rcd
  
 
4. Generate ZNC config:
 
4. Generate ZNC config:
  
  rc.d makeconf znc
+
rc.d makeconf znc
  
 
To make ZNC start on boot, add ZNC to <code>DAEMONS</code> in <code>/etc/rc.conf</code>.
 
To make ZNC start on boot, add ZNC to <code>DAEMONS</code> in <code>/etc/rc.conf</code>.
Line 30: Line 31:
 
Start and stop the ZNC daemon as usual by running:
 
Start and stop the ZNC daemon as usual by running:
  
  rc.d {start|stop|restart} znc
+
rc.d {start|stop|restart} znc
  
 
== External links ==
 
== External links ==
  
 
* [http://wiki.znc.in/ZNC ZNC (website)]
 
* [http://wiki.znc.in/ZNC ZNC (website)]

Revision as of 01:31, 15 August 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
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