Prefer webadmin (or /msg *status / controlpanel) while ZNC is running. Do not edit znc.conf live and hope.
File: ~/.znc/configs/znc.conf
If you must edit by hand
- Flush runtime config to disk:
pkill -SIGUSR1 znc ` Same as /msg *status saveconfig`.
- Stop ZNC:
pkill znc ` Or kill the pid from ps x` (see restart).
- Edit:
nano ~/.znc/configs/znc.conf
- Start:
znc
Do not pkill -SIGHUP znc as a habit (rehash). It can go badly. Stop, edit, start.
What you actually change in there
Listen/Port/SSLBindHost(vhost) — user and/or network. Must be in the global allowed BindHost list.LoadModule = webadminLoadModule = playback<Pass ...>block — better to runznc --makepassand paste; password reset<Network>server lines
Syntax errors = ZNC refuses to start and says so. Keep a copy: cp ~/.znc/configs/znc.conf ~/.znc/configs/znc.conf.bak.
Client settings after a bind/ident change: Connecting your IRC client to ZNC.