Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33134 - Custom init scripts cannot have .sh extension
Summary: Custom init scripts cannot have .sh extension
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-10 04:25 UTC by Andrew Cooks (RETIRED)
Modified: 2003-11-15 07:45 UTC (History)
1 user (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 Andrew Cooks (RETIRED) gentoo-dev 2003-11-10 04:25:19 UTC
If a custom init script ends in .sh, it can be added to a runlevel, but
depscan.sh  can't figure out the dependencies. 

According to /lib/rcscripts/awk/genenviron.awk this is the desired behaviour.
That's fine, but it should be documented as such in
http://www.gentoo.org/doc/en/rc-scripts.xml

Reproducible: Always
Steps to Reproduce:
1.Create custom init script according to guide at
http://www.gentoo.org/doc/en/rc-scripts.xml
2. Use anyname.sh
3. run depscan.sh

Actual Results:  
depscan happily prints [ok], whithout actualy doing what it's supposed to.

Expected Results:  
Should tell the user to use anyname instead of anyname.sh OR should calculate
the dependencies.

I would be happy if depscan just complains.

http://www.gentoo.org/doc/en/rc-scripts.xml doesn't mention the fact that it
should be anyname instead of anyname.sh
Comment 1 SpanKY gentoo-dev 2003-11-10 06:25:00 UTC
considering .sh implies a shell script (/bin/sh) seems like it wouldnt make
sense to name an init script with .sh when it uses /sbin/runscript

but whatever ;)
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-11-15 07:45:01 UTC
Added warning about .sh scripts in CVS.