Commit Graph

14 Commits

Author SHA1 Message Date
dteske
6b81ba954d 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
2014-07-16 19:02:30 +00:00
dteske
bf1e81a37a Fix an issue with service(8) where utilities such as screen(1) and tmux(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
2014-07-15 02:18:55 +00:00
skreuzer
1a0dc8cb0f Use Mt macro to properly format mailto links
Approved by:	hrs (mentor)
2014-06-19 13:18:23 +00:00
delphij
d53a37e6be Fix two issues:
- 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
2014-06-15 05:07:01 +00:00
eadler
26805845a9 Be a little more verbose in service's error message
PR:		bin/187118
Submitted by:	culot
2014-03-15 02:26:46 +00:00
delphij
a23c0ad41d Add -R, an option to restart all enabled "local" services.
Discussed on:	-rc@ (in September)
MFC after:	2 months
2012-12-12 01:50:58 +00:00
dougb
cc14d76fd9 Fix a silly typo on my part.
Approved by:	re (hrs)
2011-08-06 09:11:30 +00:00
uqs
7ad97661e4 mdoc nitpicking: the title argument shall be uppercase 2010-06-11 06:03:47 +00:00
dougb
3b6c5972c1 Update the "-l or -r" usage to better conform to the standard
Submitted by:	ed
2009-12-27 23:15:23 +00:00
dougb
dd63d34a3f Update the "-l or -r" usage to better conform to the standard
Submitted by:	ed
2009-12-27 23:13:18 +00:00
dougb
c2030d6143 Further improve the description, and bump Dd. 2009-12-27 03:43:19 +00:00
brueffer
e405048bb5 Provide a better short description and fix SEE ALSO section entries. 2009-12-25 09:58:19 +00:00
dougb
7853ae36b4 By popular request, execute rc.d scripts in the same environment
as they are at boot time.

Original concept submitted by:	ume
2009-12-21 20:32:04 +00:00
dougb
4f0465b170 The service command is an easy interface to the rc.d system.
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.
2009-12-20 01:34:12 +00:00