Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 219526 - sys-apps/openrc-0.2.2: result of a script startup depends of a path of call
Summary: sys-apps/openrc-0.2.2: result of a script startup depends of a path of call
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High minor
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-27 19:56 UTC by Alexander Y. Fomichev
Modified: 2008-05-02 15:28 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 Alexander Y. Fomichev 2008-04-27 19:56:38 UTC
A result of execution of startup script depends of the path it was called, i've posted a testcase below where ntpd ignores 'userid' option which is set in conf.d/ntpd. 

you can find some assumption about of this issue here:
http://forums.gentoo.org/viewtopic-t-689744.html


Reproducible: Always

Steps to Reproduce:
testcase:
mad-cat etc # equery list openrc
[ Searching for package 'openrc' in all categories among: ]
 * installed packages
[I--] [ ~] sys-apps/openrc-0.2.2 (0)
mad-cat etc # /etc/runlevels/default/ntpd start
 * Starting ntpd ...                                                                                                                                                                                    [ ok ]
mad-cat etc # cat /etc/conf.d/ntpd
# /etc/conf.d/ntpd

# Options to pass to the ntpd process
# Most people should leave this line alone ...
# however, if you know what you're doing, feel free to tweak
NTPD_OPTS="-u ntp:ntp"
mad-cat etc # /etc/runlevels/default/ntpd stop
 * Stopping ntpd ...                                                                                                                                                                                    [ ok ]
mad-cat etc # /etc/runlevels/default/ntpd start
 * Starting ntpd ...                                                                                                                                                                                    [ ok ]
mad-cat etc # ps -p `pgrep ntpd` -o cmd
CMD
/usr/sbin/ntpd -p /var/run/ntpd.pid

symlink /etc/runlevels/conf.d -> /etc/conf.d can be used as a workaround but i think result of execution should not depends of the path it was called.

mad-cat etc # ln -sf /etc/conf.d /etc/runlevels/conf.d
mad-cat etc # /etc/runlevels/default/ntpd stop
 * Stopping ntpd ...                                                                                                                                                                                    [ ok ]
mad-cat etc # /etc/runlevels/default/ntpd start
 * Starting ntpd ...                                                                                                                                                                                    [ ok ]
mad-cat etc # ps -p `pgrep ntpd` -o cmd
CMD
/usr/sbin/ntpd -p /var/run/ntpd.pid -u ntp:ntp
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2008-05-02 15:28:18 UTC
fixed in 0.2.3