Skip site navigation (1)Skip section navigation (2)
Date:      17 May 2001 23:42:38 -0000
From:      mwm@mired.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   conf/27418: There are *no* examples of using /etc/ttys inittab-like feature
Message-ID:  <20010517234238.21736.qmail@guru.mired.org>

next in thread | raw e-mail | index | archive | help

>Number:         27418
>Category:       conf
>Synopsis:       There are *no* examples of using /etc/ttys inittab-like feature
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 17 16:50:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Mike Meyer
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
Meyer Consulting
>Environment:
System: FreeBSD guru.mired.org 4.3-STABLE FreeBSD 4.3-STABLE #15: Sun May 13 15:33:37 CDT 2001 mwm@guru.mired.org:/sharetmp/obj/usr/src/sys/GURU i386


>Description:

The init page mentions - in one paragraph - that /etc/ttys can be used to
start a daemon, similar to the SysV /etc/inittab. This doesn't include an
example, and there don't seem to be any such examples.

>How-To-Repeat:

Read the man page and look for examples.

>Fix:

Here's a patch to add an example - turned off - to /etc/ttys.

--- /etc/ttys	Thu May 17 18:31:22 2001
+++ /tmp/ttys	Thu May 17 18:38:10 2001
@@ -46,6 +46,10 @@
 ttyd1	"/usr/libexec/getty std.9600"	dialup	off secure
 ttyd2	"/usr/libexec/getty std.9600"	dialup	off secure
 ttyd3	"/usr/libexec/getty std.9600"	dialup	off secure
+# Daemon example
+# This will make init run /tmp/testd with an argument of "Example", restarting
+# it whenever it exits.
+Example	"/usr/libexec/sampledaemon"	none	off
 # Pseudo terminals
 ttyp0	none			network
 ttyp1	none			network

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010517234238.21736.qmail>