From ArchWiki
Revision as of 10:20, 18 October 2011 by Wraithan (talk | contribs) (The script needs to be executable for it to be used by daemons= as well as the rc.d script.)
Jump to: navigation, search

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.

Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어

External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

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 Template:Filename). It maybe preferable to run ZNC as a daemon:

1. Install and create a config as normal:

 pacman -S znc
 znc --makeconf

2. Move the generated config to a global directory:

 mkdir /etc/znc
 mv /home/$USER/.znc/* /etc/znc/
 rm -rf /home/$USER/.znc

3. Create a new system user account

 useradd --system --no-create-home --user-group znc

4. Apply the correct permissions to the configuration directory

 chown -R znc:znc /etc/znc

5. Copy the prepared init script to Template:Filename and make it executable

 cd /etc/rc.d
 wget https://raw.github.com/gist/1266098/b5530ead3f797ef344fb0e0cba16d270281d087b/znc
 chmod +x znc

6. Add znc to the [daemons] section in /etc/rc.conf.

Start and stop the ZNC daemon as usual by running:

 rc.d {start|stop|restart} znc

External links