Summary: | net-irc/znc cannot create PID file | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Rafal Kupiec <belliash> |
Component: | Current packages | Assignee: | Alex Alexander (RETIRED) <wired> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | proxy-maint, sbraz |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | znc-info,txt |
Description
Rafal Kupiec
2016-03-23 16:50:25 UTC
emerge --info znc please Did you check that your config contains the line PidFile = /run/znc/znc.pid? Created attachment 428916 [details]
znc-info,txt
(In reply to Louis Sautier from comment #2) > Did you check that your config contains the line > PidFile = /run/znc/znc.pid? Yes, I've got this option. /run/znc is owned by znc:znc and chmod 770. Can you attach the output of /etc/init.d/znc start? There should be a line which contains the path to the PID file. znc | * Starting znc ... znc |[ .. ] Checking for list of available modules... znc |[ >> ] ok znc |[ .. ] Opening config [/var/lib/znc/configs/znc.conf]... znc |[ >> ] ok znc |[ .. ] Loading global module [webadmin]... znc |[ >> ] [/usr/lib64/znc/webadmin.so] znc |[ .. ] Loading global module [identfile]... znc |[ >> ] [/usr/lib64/znc/identfile.so] znc |[ .. ] Loading global module [adminlog]... znc |[ >> ] [/usr/lib64/znc/adminlog.so] znc |[ .. ] Loading global module [lastseen]... znc |[ >> ] [/usr/lib64/znc/lastseen.so] znc |[ .. ] Loading global module [partyline]... znc |[ >> ] [/usr/lib64/znc/partyline.so] znc |[ .. ] Loading global module [fail2ban]... znc |[ >> ] [/usr/lib64/znc/fail2ban.so] znc |[ .. ] Binding to port [+ABCD]... znc |[ >> ] ok znc |[ ** ] Loading user [XYZ] znc |[ ** ] Loading network [default] znc |[ .. ] Loading network module [keepnick]... znc |[ >> ] [/usr/lib64/znc/keepnick.so] znc |[ .. ] Loading network module [nickserv]... znc |[ >> ] [/usr/lib64/znc/nickserv.so] znc |[ .. ] Loading network module [savebuff]... znc |[ >> ] [/usr/lib64/znc/savebuff.so] znc |[ .. ] Loading network module [simple_away]... znc |[ >> ] [/usr/lib64/znc/simple_away.so] znc |[ .. ] Loading network module [chansaver]... znc |[ >> ] [/usr/lib64/znc/chansaver.so]XYZ 6667]... znc |[ >> ] ok znc |[ .. ] Loading user module [controlpanel]... znc |[ >> ] ok znc |[ .. ] Loading user module [chansaver]... znc |[ >> ] ok znc |[ .. ] Loading user module [block_motd]... znc |[ >> ] ok znc |[ .. ] Loading user module [buffextras]... znc |[ >> ] ok znc |[ .. ] Loading user module [clientnotify]... znc |[ >> ] ok znc |[ .. ] Loading user module [log]... znc |[ >> ] ok znc |[ ** ] Loading user [XYZ] znc |[ ** ] Loading network [default] znc |[ .. ] Loading network module [keepnick]... znc |[ >> ] [/usr/lib64/znc/keepnick.so] znc |[ .. ] Loading network module [nickserv]... znc |[ >> ] [/usr/lib64/znc/nickserv.so] znc |[ .. ] Adding server [XYZ 6667]... znc |[ >> ] ok znc |[ .. ] Loading user module [block_motd]... znc |[ >> ] ok znc |[ .. ] Loading user module [chansaver]... znc |[ >> ] ok znc |[ .. ] Loading user module [clientnotify]... znc |[ >> ] ok znc |[ .. ] Forking into the background... znc |[ >> ] [pid: 8875] znc |[ ** ] ZNC 1.6.3 - http://znc.in znc | * start-stop-daemon: did not create a valid pid in `/run/znc/znc.pid' znc | * Failed to start znc [ !! ] znc | * ERROR: znc failed to start I keep thinking there's something wrong with your config. This is what you should see: [ .. ] Forking into the background... [ >> ] [pid: 30268] [ .. ] Writing pid file [/run/znc/znc.pid]... [ >> ] ok [ ** ] ZNC 1.6.3 - http://znc.in [ ok ] # /etc/conf.d/znc # Location of the znc configuration folder ZNC_DATADIR="/var/lib/znc" # User to run znc as ZNC_USER="znc" # Group to run znc as ZNC_GROUP="znc" # PID file ZNC_PIDFILE="/run/znc/znc.pid" # You can use this configuration option to pass additional options to the # start-stop-daemon, see start-stop-daemon(8) for more details. # Per default we wait 1000ms after we have started the service to ensure # that the daemon is really up and running. ZNC_SSDARGS="--wait 1000" # The termination timeout (start-stop-daemon parameter "retry") ensures # that the service will be terminated within a given time (30 + 5 seconds # per default) when you are stopping the service. ZNC_TERMTIMEOUT="TERM/30/KILL/5" This is the init script config. What I meant was this: # grep PidFile /var/lib/znc/configs/znc.conf PidFile = /run/znc/znc.pid By the way, you should have seen a message on the first merge: https://gitweb.gentoo.org/repo/gentoo.git/tree/net-irc/znc/files/README.gentoo#n20 Yep, I missed that. Thanks for help! |