Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 481034 - sys-apps/openrc-0.11.8 - Invalid example code in runscript manpage
Summary: sys-apps/openrc-0.11.8 - Invalid example code in runscript manpage
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 481182
  Show dependency tree
 
Reported: 2013-08-14 11:35 UTC by Thomas Deutschmann (RETIRED)
Modified: 2013-08-15 15:32 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 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.