Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 600416 - net-proxy/nutcracker: init script can't start nutcracker
Summary: net-proxy/nutcracker: init script can't start nutcracker
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-21 16:23 UTC by Marcin Mirosław
Modified: 2016-11-26 12:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Mirosław 2016-11-21 16:23:28 UTC
# /etc/init.d/nutcracker start
 * Testing configuration ...                                      [ ok ]
 * Starting Nutcracker                                            [ ok ]
# ps aux|grep nutcrack
root     15189  0.0  0.0  11360   844 pts/1    S+   17:17   0:00 grep --colour=auto nutcrack

start-stop-daemon should contain "--wait 100", this allows to catch such problematic situation:
 * Testing configuration ...                                    [ ok ]
 * Starting Nutcracker ...
 * start-stop-daemon: /usr/sbin/nutcracker died                 [ !! ]
 * ERROR: nutcracker failed to start

Main problem is that nutcracker is starting as user nobody:
USER="${USER:-nobody}"
but user nobody doesn't has permissions to create pid file:
PIDFILE="${PIDFILE:-/var/run/nutcracker.pid}"

Something like:
start_pre {
  check_path ...
}

should fix it.


Reproducible: Always