Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 481034

Summary: sys-apps/openrc-0.11.8 - Invalid example code in runscript manpage
Product: Gentoo Hosted Projects Reporter: Thomas Deutschmann (RETIRED) <whissi>
Component: OpenRCAssignee: OpenRC Team <openrc>
Status: RESOLVED FIXED    
Severity: trivial    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 481182    

Description Thomas Deutschmann (RETIRED) gentoo-dev 2013-08-14 11:35:13 UTC
Hi,

the example code from

# man runscript
[...]
           start_pre()
           {
                   if [ "$RC_CMD" = restart ]; then
                           # This block will only execute for a restart command. Use a
                           # structure like this if you need special processing for a
                           # restart which you do not need for a normal start.
                           # The function can also fail from here, which will mean that a
                           # restart can fail.
                           # This logic can also be used in start_post, stop_pre and
                           # stop_post.
                   fi
               # Ensure that our dirs are correct
               checkpath --dir --owner foo:foo --mode 0664 \
                   /var/run/foo /var/cache/foo
           }
[...]

is invalid:

checkpath: option '--dir' is ambiguous; possibilities: '--directory' '--directory-truncate'



Reproducible: Always
Comment 1 William Hubbs gentoo-dev 2013-08-15 15:32:43 UTC
This is fixed in commit 1f5d447 and will be part of OpenRC-0.13.
Thanks for the report.