niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » BSD » OpenBSD
how do I free up my console getty after boot
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
mike
*nix forums Guru Wannabe


Joined: 04 Mar 2005
Posts: 233

PostPosted: Thu Jul 13, 2006 10:18 pm    Post subject: how do I free up my console getty after boot Reply with quote

I have a soekris SBC with OpenBSD 3.9, configured so that
it boots with tty00 acting as serial console.
# cat /etc/boot.conf
stty com0 9600
set tty com0

That is fine, when I need to have access to the console to fix
something, but in an unattended reboot I want to free up the serial port
to use it with a GPS reference clock. So I need a way to disable the
getty once I have verified that I have access to the net. Killing it
is not useful as init respawns it.

I suppose I could unconfigure the console, and just use command line
boot arguments to enable when required, but if there is another
solution I would prefer it.

Anyone know how to do this?

Thanks
Back to top
jKILLSPAM.schipper@math.u
*nix forums Guru Wannabe


Joined: 13 Nov 2005
Posts: 202

PostPosted: Thu Jul 13, 2006 10:29 pm    Post subject: Re: how do I free up my console getty after boot Reply with quote

mike <michael.no.spam.cook@wanadoo.fr> wrote:
Quote:
I have a soekris SBC with OpenBSD 3.9, configured so that
it boots with tty00 acting as serial console.
# cat /etc/boot.conf
stty com0 9600
set tty com0

That is fine, when I need to have access to the console to fix
something, but in an unattended reboot I want to free up the serial port
to use it with a GPS reference clock. So I need a way to disable the
getty once I have verified that I have access to the net. Killing it
is not useful as init respawns it.

I suppose I could unconfigure the console, and just use command line
boot arguments to enable when required, but if there is another
solution I would prefer it.

Anyone know how to do this?

I don't think this is a very good idea; Soekrises are notoriously bad
timekeeping devices, and while adding a GPS clock will help, I'm fairly
certain that attaching the clock to a host that does reasonable
timekeeping on its own and then synchronizing the Soekris to that will,
at the very least, not degrade accuracy. Plus, a serial console is your
last straw, all complexity you can remove from this part of the system
is good.

If you are willing to deal with the possibility that the system fails to
enter multiuser mode, you could start getty from /etc/rc. This would
allow it to be killed as usual, I suppose, but would - as noted - have
the disadvantage that it simply wouldn't come up if a filesystem got
damaged beyond repear, or somesuch.

Joachim
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Sun Nov 23, 2008 11:28 am | All times are GMT
navigation Forum index » *nix » BSD » OpenBSD
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Free DNS service required rashed Postfix 0 Tue Aug 12, 2008 11:21 am
No new posts ** Postfix error on console every minute or so ** ?? drywash Postfix 0 Fri Jul 04, 2008 8:49 pm
No new posts Artica-postfix a full Open Source postfix management console dtouzeau Postfix 0 Mon Jun 16, 2008 9:46 pm
No new posts Backup failure notification for 10g EM Console (not grid) NetComrade Server 0 Fri Jul 21, 2006 6:36 am
No new posts fsck during startup following mirroring of boot drives Joe D. Solaris 0 Thu Jul 20, 2006 9:09 pm

Credit Counseling | Mortgage Calculator | Bikini Model | Mortgages | Buy PSP
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1317s ][ Queries: 16 (0.0644s) ][ GZIP on - Debug on ]