Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 483142 - app-admin/syslog-ng - init script should set absolute path to syslog-ng binary
Summary: app-admin/syslog-ng - init script should set absolute path to syslog-ng binary
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mr. Bones. (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-31 12:34 UTC by Stefano Takekawa
Modified: 2013-08-31 17:44 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 Stefano Takekawa 2013-08-31 12:34:36 UTC
When the PATH variable in specified in /etc/security/pam_env.con and it does not contain the path /usr/sbin/, the init script which starts syslog-ng fails:

# /etc/init.d/syslog-ng restart
 * Checking your configfile (/etc/syslog-ng/syslog-ng.conf) ...                                              [ ok ]
 * Starting syslog-ng ...
 * start-stop-daemon: failed to exec `syslog-ng': No such file or directory
 * start-stop-daemon: failed to start `syslog-ng'
 * Failed to start yslog-ng                                                                                 [ !! ]
 * ERROR: syslog-ng failed to start

That happens because the variable command is set to "syslog-ng" in the init script. With command="/usr/sbin/syslog-ng", the script starts correctly. app-admin/syslog-ng is version 3.4.2 (stable).


Reproducible: Always

Steps to Reproduce:
1. emerge =app-admin/syslog-ng-3.4.2
2. uncomment PATH variable in /etc/security/pam_env.conf
3. /etc/init.d/syslog-ng restart
Actual Results:  
/etc/init.d/syslog-ng does not start

Expected Results:  
/etc/init.d/syslog-ng should start

Only syslog-ng init script seems to be affected, all the others scripts/packages work well.
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2013-08-31 17:44:29 UTC
ok, updated the init script.  re-emerge syslog-ng if you're affected by this.