Bug 1255148 - init script fails to start
Summary: init script fails to start
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: znc
Version: el6
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Nick Bebout
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-19 18:37 UTC by Sarah Day
Modified: 2016-10-07 18:09 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-10-07 18:09:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Sarah Day 2015-08-19 18:37:03 UTC
Description of problem:

znc init script fails to start giving error:

Starting znc: /usr/bin/dirname: extra operand `2>&1.pid'
Try `/usr/bin/dirname --help' for more information.

Version-Release number of selected component (if applicable):

znc-1.4-1.el6.x86_64

How reproducible:

Always

Steps to Reproduce:
1. start znc: service znc start
2. Watch it fail
3. Release annoyed grunt

Actual results:
Fails to start with error:

Starting znc: /usr/bin/dirname: extra operand `2>&1.pid'
Try `/usr/bin/dirname --help' for more information.

Expected results:

znc starts with no errors

Comment 1 Tomas Smetana 2015-08-20 12:51:02 UTC
The error message is annoying but it's not the reason znc doesn't start... There is no configuration after the installation and znc fails to start because of it.

I made it work by doing the following:

1. Login as root
2. znc -r --makeconf -d /var/lib/znc
   This will ask many questions and create the configuration in /var/lib/znc
   When prompted to "Launch ZNC now?", say no.
3. chown -R znc:znc /var/lib/znc
   ...since we created it as root.
4. service znc start
   This will spit the error message about extra operand again, but znc seems to start just fine.

I understand packaging ZNC is somewhat tough... Maybe fixing the initscript so it would simply refuse to start znc when there is no configuration (and explain why) would make the user's life easier.

Comment 2 Nick Bebout 2016-10-07 18:09:53 UTC
I am retiring ZNC in epel5 and epel6 since there are deps that are not available.


Note You need to log in before you can comment on or make changes to this bug.