Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 343709 - sys-apps/openrc should warn users about deprecation of conf.d/local.st{art,op}
Summary: sys-apps/openrc should warn users about deprecation of conf.d/local.st{art,op}
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords: InOverlay
: 345739 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-11-01 14:19 UTC by Markos Chandras (RETIRED)
Modified: 2010-12-02 21:18 UTC (History)
2 users (show)

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 Markos Chandras (RETIRED) gentoo-dev 2010-11-01 14:19:19 UTC
Hi

openrc currently installs an obsolete(?) file

/etc/conf.d/local. This file looks useless to me since /etc/conf.d/local.st{art,op} are used to place specific commands for /etc/init.d/local init script

So what this /etc/conf.d/local file is for?
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-11-01 14:25:19 UTC
The situation seems rather inconsistent. init.d/local says that local.start/stop are "old"

    # Support old configs
    if [ -e /etc/conf.d/local.start ]; then
        . /etc/conf.d/local.start
    fi
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2010-11-01 14:26:45 UTC
But it is making use of them if the files are there. So even if you have scripts in conf.d/local , the init script will use .start and .stop

Shouldn't be there a warning message about removing the old files etc without having to dig into the init script?
Comment 3 Markos Chandras (RETIRED) gentoo-dev 2010-11-01 14:30:59 UTC
Ok seems like I was wrong. But still, openrc should spit an ewarn message or something about old files and let users know that they should migrate their scripts to the new location
Comment 4 Mike Gilbert gentoo-dev 2010-11-01 15:28:16 UTC
(In reply to comment #3)
> openrc should spit an ewarn message or
> something about old files and let users know that they should migrate their
> scripts to the new location
> 

And/or add it to the OpenRC migration guide.
http://www.gentoo.org/doc/en/openrc-migration.xml
Comment 5 William Hubbs gentoo-dev 2010-11-06 16:39:22 UTC
I have added warnings to /etc/init.d/local concerning migrating the /etc/conf.d/local.start and /etc/conf.d/local.stop files to /etc/conf.d/local.

Openrc team, do we need to put this in the migration guide?
Comment 6 Jory A. Pratt gentoo-dev 2010-11-10 04:19:20 UTC
(In reply to comment #5)
> I have added warnings to /etc/init.d/local concerning migrating the
> /etc/conf.d/local.start and /etc/conf.d/local.stop files to /etc/conf.d/local.
> 
> Openrc team, do we need to put this in the migration guide?
> 

I would prefer to see this in migration guide, within next few releases we will stop supporting local.start/local.stop completely to ensure we force the users to migrate their settings.
Comment 8 SpanKY gentoo-dev 2010-11-18 23:09:09 UTC
*** Bug 345739 has been marked as a duplicate of this bug. ***
Comment 9 Tino 2010-12-02 18:06:10 UTC
(In reply to comment #7)
> the ebuilds now migrate & warn for you
Yes, they do, thanks.
But unfortunately I'm not able to find out how to define actions to trigger on boot or shutdown.
How can I find that out??
Thanks!
Comment 10 SpanKY gentoo-dev 2010-12-02 21:18:19 UTC
this isnt a support forum.  please seek assistance on the forums and/or user mailing lists.