aboutsummaryrefslogtreecommitdiff
path: root/man/runscript.8
AgeCommit message (Collapse)Author
2013-03-20runscript: update documentation for the provide functionWilliam Hubbs
Explain that virtual services take precedence over real services and recommend that virtual services have different names from real services. Reported-by: me@2gw.net X-Gentoo-Bug: 461818 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=461818
2012-10-16Revert "Prepare for real "restart" support"Christian Ruppert
This reverts commit c5bb6829d00a4034f7294aa4af79d5d114572ac1. That was meant for my local devel branch :)
2012-10-12Prepare for real "restart" supportChristian Ruppert
2012-09-25small runscript man page cleanupsWilliam Hubbs
2012-09-25Drop restart_pre/restart_postWilliam Hubbs
By design, restart is hard coded to run stop followed by start along with all of the pre/post functions associated with them. Restart doesn't need its own pre/post functions since it is possible to make any function in an init script behave differently for a restart command by testing against the RC_CMD environment variable.
2012-09-23Clarify how to handle restart processingWilliam Hubbs
The Gentoo developer manual covers how to handle restarts in init scripts, but this was not officially covered in OpenRc's Documentation. This commit adds an example to the runscript man page that shows how this works.
2012-09-22Add restart_pre/restart_post support, also document RC_CMDChristian Ruppert
2012-09-09add RC_PREFIX environment variableWilliam Hubbs
This will be used by init scripts which want to be able to run in a Gentoo Prefix installation. RC_PREFIX will contain the prefix offset.
2012-07-26Bring Back prefix supportWilliam Hubbs
We now have a team member who is interested in OpenRC on prefix, so I am bringing it back to the main tree.
2012-03-24Document the required_dirs and required_files variablesWilliam Hubbs
2012-03-03Runscript: allow extra_commands to be run in chrootsWilliam Hubbs
The commands defined in the extra_commands variable do not depend on whether the service is stopped or started, so it is valid to run them in chroot environments. Also, add a note to the runscript man page about the commands in extra_commands being able to run whether or not the service is started. Reported-by: Robin Johnson <robbat2@gentoo.org> X-Gentoo-Bug: 406713 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=406713
2012-02-21Remove prefix supportWilliam Hubbs
I spoke with the prefix team sometime back and was told that they do not have an interest in using OpenRC on prefix systems.
2012-02-19Clarify the documentation about the reboot runlevelWilliam Hubbs
The reboot runlevel does exist, but it gets remapped to the shutdown runlevel internally.
2012-02-19Document the RC_REBOOT variableWilliam Hubbs
2012-01-26Add -W/--writable function to checkpathChristian Ruppert
Checkpath -W will use access(3p) to determine whether or not a path is writable. This is more accurate than test(1p) because it also takes into account whether or not the filesystem is mounted read-only. Modified by William Hubbs to add the man page update.
2012-01-22WhitespaceChristian Ruppert
2012-01-17Use the "--make-pidfile" when command_background is usedChristian Ruppert
The start-stop-daemon "--make-pidfile" option is now used by default when using command_background, this requires a pidfile to be specified. Document command_background option. Reported-by: Giampaolo Tomassoni <giampaolo@tomassoni.biz> X-Gentoo-Bug: 399165 X-Gentoo-Bug-URL: https://bugs.gentoo.org/399165
2012-01-15Add "ifstopped" command to runscriptChristian Ruppert
Signed-off-by: Christian Ruppert <idl0r@gentoo.org>
2012-01-09rc/checkpath: tmpfiles.d backend creation codeRobin H. Johnson
This commit provides the checkpath applet with feature parity to systemd's tmpfiles.c create_item function. Very similarly to the systemd function, it does NOT do any of the cleanup work in this function. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2011-12-30Reword retry documentation on runscript man pageWilliam Hubbs
2011-12-31Add "retry" option for the stop() templateChristian Ruppert
2011-12-30Documentation updatesWilliam Hubbs
- Clarify that start_stop_daemon_args is only used when starting a daemon. - fix several typos.
2011-12-30Document start_stop_daemon_argsChristian Ruppert
2011-12-11Allow init scripts to be executed with a relative pathWilliam Hubbs
This was a regression that was caused by the fix for http://bugs.gentoo.org/show_bug.cgi?id=350910. I am reverting the commit that we said fixed that bug and re-opening it. Reported-By: Nathaniel <nathaniel@paust.us X-Gentoo-Bug: 392457 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=392457
2011-11-19make shell math operations style more succulentMike Frysinger
Convert the style: var=$((${var} + 1)) to: : $(( var += 1 )) The latter is easier to read imo. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-11-16add support for extra_stopped_commandsWilliam Hubbs
2011-07-31Improve processing of service directories and conf.d filesWilliam Hubbs
symbolic links should not be followed in an attempt to work out the name of the service we are running. Also, @sysconfdir@/conf.d should be tried as a backup directory for configuration files. I would like to thank Robin Johnson for his input on this change. X-Gentoo-Bug: 350910 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=350910
2011-06-29drop useless "All rights reserved" noticeMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-04-08clarify documentation for -timeout keywordWilliam Hubbs
2011-01-05Update manpage for mention of rc_sys purpose.Robin H. Johnson
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2010-01-08random spelling fixesMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-11-04Add support for Linux Containers, fixes #202.Roy Marples
Patch by bug reporter.
2009-07-01We should use -feature instead of nofeature.Roy Marples
This matches the ifconfig and Gentoo USE flag syntax and is hopefully easier to read. Fixes #178.
2009-05-01Add (c) to CopyrightRoy Marples
2009-04-30Add -Z, --dry-run option to show which services we would start/stopRoy Marples
without actually doing so. Fixes #151.
2009-04-27Add the noshutdown keyword to special case the shutdown.Roy Marples
2009-04-26Add the nostop keyword so that we don't stop the network init script by default.Roy Marples
2008-12-30Typo.Roy Marples
2008-11-04More Typos.Roy Marples
2008-09-19Style.Roy Marples
2008-09-19Document the limitation of symlinking services outside of the service ↵Roy Marples
directory, Gentoo #237263.
2008-07-03Fix is_older_than a little better, and make is_newer_than correct.Roy Marples
2008-06-03Add the ewaitfile function so init scripts can wait until sockts are ↵Roy Marples
created, Gentoo #175783.
2008-03-19SVCNAME -> RC_SVCNAME, but export SVCNAME still for compat.Roy Marples
2008-03-19Add rc-service and update all softlevel refs to runlevel.Roy Marples
2008-03-04Document the negation of keywords.Roy Marples
2008-03-03Split VPS into VSERVER and OPENVZRoy Marples
2008-02-22Welcome to 2008.Roy Marples
2008-02-22Welcome to 2008.Roy Marples
2008-02-19keywords -> keywordRoy Marples