summaryrefslogtreecommitdiffstats
path: root/usr.sbin/service/service.sh
Commit message (Collapse)AuthorAgeFilesLines
* Add an additional check to service(8) -e incase rcvar is blankallanjude2015-09-081-2/+6
| | | | | | Approved by: bapt (mentor) X-MFC-With: 287576 Differential Revision: https://reviews.freebsd.org/D3604
* service(8) -e does not respect /etc/rc.conf.d/* entriesallanjude2015-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
* Revert previous revision (r268461) for reasons documented in PR.dteske2014-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
* Fix an issue with service(8) where utilities such as screen(1) and tmux(1)dteske2014-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
* Fix two issues:delphij2014-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
* Be a little more verbose in service's error messageeadler2014-03-151-1/+1
| | | | | PR: bin/187118 Submitted by: culot
* Add -R, an option to restart all enabled "local" services.delphij2012-12-121-1/+30
| | | | | Discussed on: -rc@ (in September) MFC after: 2 months
* Update the "-l or -r" usage to better conform to the standarddougb2009-12-271-1/+1
| | | | Submitted by: ed
* By popular request, execute rc.d scripts in the same environmentdougb2009-12-211-2/+2
| | | | | | as they are at boot time. Original concept submitted by: ume
* The service command is an easy interface to the rc.d system.dougb2009-12-201-0/+120
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.
OpenPOWER on IntegriCloud