328599 |
30-Jan-2018 |
kevans |
MFC r328032,r328060,r328243: service(8): Support services in jails
MFC r328032: service(8): Add support for interfacing with services in jails
Provide a -j option that can take a jail name or id. If -j is specified, check that the jail exists and proxy the service request through to service(8) in the jail.
This allows for cleaner workflows when updating services in a jail, turning the following:
pkg -j dns upgrade jexec dns service named restart
into:
pkg -j dns upgrade service -j dns named restart
MFC r328060: service(8): Reset OPTIND properly now that we parse args twice
r328032 introduced a second round of argument parsing to proxy the request through to a jail as needed, but failed to reset OPTIND before getting to the second round of parsing to allow other flags to be set.
MFC r328243: usr.sbin/service: Fix -j to not be order dependant
The introduced -j option is highly dependant on the ordering of arguments, and it exhibited broken behavior in some other circumstances. Fix these issues, and simplify the feature by removing the unneessary double parsing of options.
PR: 223325 |
268773 |
16-Jul-2014 |
dteske |
Revert previous revision (r268461) for reasons documented in PR. To use tmux in an rc.d script, use the new-session flag "-d". To use screen in an rc.d script, use the "-dm" flag. If you really need to launch an attached session, manually export TERM=xterm (FreeBSD 9.0 or higher) or export TERM=cons25 for older releases.
Reported by: bdrewery Discussed on: src-committers, svn-src-all, svn-src-head PR: bin/191869
|