aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/service
Commit message (Collapse)AuthorAgeFilesLines
* Use "$@" instead of $* to cope with parameters that have spaces inWarner Losh2018-06-131-1/+1
| | | | | | | | | them. "$@" preserves the args with spaces properly. Differential Revision: https://reviews.freebsd.org/D15784 Notes: svn path=/head/; revision=335029
* service(1): Improve manual pageEitan Adler2018-06-011-24/+39
| | | | | | | | | | | | | | | * Sort options.. * Fix some typos. * Use one Bd macro for code blocks instead of a bunch of Dl macros. * Improve formatting. * Clarify 'jail' argument PR: 228552 Submitted by: 0mp MFC After: 3 weeks Notes: svn path=/head/; revision=334472
* usr.sbin/service: Fix -j to not be order dependantKyle Evans2018-01-221-32/+18
| | | | | | | | | | | | | 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. Reviewed by: jilles Differential Revision: https://reviews.freebsd.org/D13952 Notes: svn path=/head/; revision=328243
* service(8): Reset OPTIND properly now that we're parsing args twiceKyle Evans2018-01-161-0/+1
| | | | | | | | | | | 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. Reported by: Oleg Ginzburg <olevole olevole ru> Notes: svn path=/head/; revision=328060
* service(8): Add support for interfacing with services in jailsKyle Evans2018-01-152-6/+44
| | | | | | | | | | | | | | | | | | | | | | | | 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 PR: 223325 Submitted by: David O'Rourke (with slight changes) MFC after: 2 weeks Notes: svn path=/head/; revision=328032
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326276
* Add an additional check to service(8) -e incase rcvar is blankAllan Jude2015-09-081-2/+6
| | | | | | | | | Approved by: bapt (mentor) X-MFC-With: 287576 Differential Revision: https://reviews.freebsd.org/D3604 Notes: svn path=/head/; revision=287581
* service(8) -e does not respect /etc/rc.conf.d/* entriesAllan Jude2015-09-081-0/+2
| | | | | | | | | | | | | PR: 173454 Submitted by: giantlock@gmail.com (original patch) Approved by: bapt (mentor) MFC after: 1 week Relnotes: yes Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D3600 Notes: svn path=/head/; revision=287576
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+11
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge head from 7/28Simon J. Gerraty2014-08-192-2/+2
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=270164
| * Merge headSimon J. Gerraty2014-04-281-1/+1
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | Sync with HEAD.David E. O'Brien2013-02-082-2/+35
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | Revert previous revision (r268461) for reasons documented in PR.Devin Teske2014-07-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=268773
* | | | Fix an issue with service(8) where utilities such as screen(1) and tmux(1)Devin Teske2014-07-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | would behave differently when utilizing rc-script was invoked manually vs. service(8). The issue being that these utilities require the TERM environ variable to be set and service(8) was not passing it down. Reported by: Michael Dexter <editor@callfortesting.org> PR: bin/191869 Reviewed by: allanjude MFC after: 3 days X-MFC-to: stable/10, stable/9 Notes: svn path=/head/; revision=268641
* | | | Use Mt macro to properly format mailto linksSteven Kreuzer2014-06-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Approved by: hrs (mentor) Notes: svn path=/head/; revision=267642
* | | | Fix two issues:Xin LI2014-06-151-1/+1
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Check for rc.d directory's existence before traversing it; - Don't output * when rc.d directory is empty. PR: conf/190665 Submitted by: Oleg Ginzburg <olevole olevole ru> (with changes) MFC after: 2 weeks Notes: svn path=/head/; revision=267493
* | | Be a little more verbose in service's error messageEitan Adler2014-03-151-1/+1
| |/ |/| | | | | | | | | | | | | PR: bin/187118 Submitted by: culot Notes: svn path=/head/; revision=263202
* | Add -R, an option to restart all enabled "local" services.Xin LI2012-12-122-2/+35
|/ | | | | | | | Discussed on: -rc@ (in September) MFC after: 2 months Notes: svn path=/head/; revision=244132
* Fix a silly typo on my part.Doug Barton2011-08-061-1/+1
| | | | | | | Approved by: re (hrs) Notes: svn path=/head/; revision=224672
* mdoc nitpicking: the title argument shall be uppercaseUlrich Spörlein2010-06-111-1/+1
| | | | Notes: svn path=/head/; revision=209031
* Update the "-l or -r" usage to better conform to the standardDoug Barton2009-12-271-1/+1
| | | | | | | Submitted by: ed Notes: svn path=/head/; revision=201070
* Update the "-l or -r" usage to better conform to the standardDoug Barton2009-12-271-1/+1
| | | | | | | Submitted by: ed Notes: svn path=/head/; revision=201069
* Further improve the description, and bump Dd.Doug Barton2009-12-271-2/+2
| | | | Notes: svn path=/head/; revision=201035
* Provide a better short description and fix SEE ALSO section entries.Christian Brueffer2009-12-251-3/+3
| | | | Notes: svn path=/head/; revision=200980
* By popular request, execute rc.d scripts in the same environmentDoug Barton2009-12-212-4/+21
| | | | | | | | | as they are at boot time. Original concept submitted by: ume Notes: svn path=/head/; revision=200809
* The service command is an easy interface to the rc.d system.Doug Barton2009-12-203-0/+241
Its primary purpose is to start and stop services provided by the rc.d scripts, however it can also be used to list the scripts using various criteria. Notes: svn path=/head/; revision=200743