Visit Our UNIX and Linux User Community


/usr/sbin/getty


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers /usr/sbin/getty
# 1  
Old 11-13-2002
/usr/sbin/getty

How can i restart the console getty without rebooting the system on HPUX 11.0

Normally it will be stated by ps -ef | grep getty

console 0:00 /usr/sbin/getty console console


many thanx
# 2  
Old 11-13-2002
You can simply kill the getty PID. It will respawn because of the line in the /etc/inittab. Similary to this:

cons:123456:respawn:/usr/sbin/getty console console # system console

The respawn function allows for it to be restarted if it is killed. This is good to do if the console gets hung for some reason.

Smilie
# 3  
Old 11-13-2002
/usr/sbin/getty should be spawned from /etc/inittab. Make sure you have an entry for it in the latter file and ensure that the third field (fields are delimited by the ":" character) is "respawn". The 2nd field relates to the run level in which the command in 4th field is executed.

Killing the PID of the "/usr/sbin/getty console console" process should cause it to respawn. To confirm it has, the PID will be different.

---

Sorry Kelam, we apparently posted at the exact same time. I did not realise you had already furnished the solution Smilie
# 4  
Old 11-13-2002
logoff and logon!!

as far as I know, getty is started by init and is thus the second process in the init -> getty -> login -> shell sequence on hp-ux... since getty is a parent to your logon shell.. killing and restarting getty amounts to loging off and logon...

you need not reboot the entire system to restart getty...

Cheers!
Vishnu.
# 5  
Old 11-30-2002
Smilie It worked. Many thanx. Your are great. To reload the /etc/inittab I issued the command init q, which caused the system to re-examine the file and start a getty process. The proces was dead.
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #338
Difficulty: Easy
telnet is considered safer than ssh for most remote login applications.
True or False?

10 More Discussions You Might Find Interesting

1. Red Hat

"/usr/sbin/hpacucli ctrl all show" command does not work

Dear Concern, We have observed that following command stuck/does not work in some RedHat nodes. Please advise us to troubleshoot the issue. /usr/sbin/hpacucli ctrl all show Note: HP Array Configuration Utility CLI for Linux 64-bit With Best Regards, Md. Abdullah-Al Kauser (3 Replies)
Discussion started by: makauser
3 Replies

2. HP-UX

HP-UX /usr/sbin/snmpdm logging level default?

Hi, I'm not an HP-UX SysAdmin and work with Linux Systems a bit more but I have a question about the logging level for the snmpdm. We don't specify or modify anything so we're probably taking the default? What is the default? I see in the man page these options are available: Turn off... (0 Replies)
Discussion started by: hlutz
0 Replies

3. AIX

/usr/sbin/extendvg: Unable to extend volume group

Dear Expret, Help me about my issue, I trying add new disk to volume Group but error: step add new disk to volume group. 1. ~Change a Volume Group Add a Physical Volume to a Volume Group Remove a Physical Volume from a Volume Group Reorganize a Volume Group... (6 Replies)
Discussion started by: williamen
6 Replies

4. Shell Programming and Scripting

Alternative for /usr/sbin/userdbset on Linux

Hello. I am currently on HPUX and migrating to Linux RHEL 6.4 This program on hpux: /usr/sbin/userdbset is puzzling me on linux. Does anyone know the equivilent program forked or used on linux. This program is mentioned in our user reset script. here is a strings of the... (2 Replies)
Discussion started by: olyanderson
2 Replies

5. UNIX for Advanced & Expert Users

/sbin/ldconfig: File /usr/lib/libquazip.so.1.0.0 is empty, not checked.

I thought I would document this error since its not documented very well. The package or file may be different but the idea is the same. $ sudo yum updateLoaded plugins: langpacks, presto, refresh-packagekit, versionlock Setting up Update Process Resolving Dependencies --> Running... (0 Replies)
Discussion started by: cokedude
0 Replies

6. Red Hat

/usr/sbin/crond: can't lock /var/run/crond.pid,

please tell pre-requisite steps to activate cron. i activated the cron but it not executing the script which i set in crontab entry.through root user i passed the service crond start it get start.but when i go to etc/init.d and passed crond stop command.it gets crond: can't lock /var/run/crond.pid,... (2 Replies)
Discussion started by: umair
2 Replies

7. Solaris

crontab /usr/sbin/rtc log rc=1

I noticed in my cron log file for my solaris 8 servers the rc=1. I imagine that is return code and something did not process. Does anyone know what that is, is there fix or the implications of leaving it? Thank you > CMD: && /usr/sbin/rtc -c > /dev/null 2>&1 > root 22049 c Fri Dec 19... (1 Reply)
Discussion started by: csgonan
1 Replies

8. HP-UX

syslog: /usr/sbin/envd[1075]:

hi friends, what is the meaning of this error ? syslog: /usr/sbin/envd: (2 Replies)
Discussion started by: cromohawk
2 Replies

9. Solaris

different between /sbin/init and /usr/sbin/init

root@test09 # ls -al /sbin/init -r-xr-xr-x 1 root sys 550000 Jun 29 2002 /sbin/init root@test09 # ls -al /usr/sbin/init -r-xr-xr-x 1 root sys 37100 Jun 29 2002 /usr/sbin/init (2 Replies)
Discussion started by: userking
2 Replies

10. Solaris

WARNING - /usr/sbin/fsck not found - Please help

WARNING - /usr/sbin/fsck not found. Most likely the mount of /usr failed or the /usr filesystem is badly damaged. The system is being halted. Either re-install the system of boot with -b option in an attempt to recover Anyone help me on restoring this without having to reinstall. it is a... (8 Replies)
Discussion started by: frustrated1
8 Replies

Featured Tech Videos