Sponsored Content
Full Discussion: AIX Boot Scripts
Operating Systems AIX AIX Boot Scripts Post 302445670 by ygemici on Monday 16th of August 2010 02:28:13 PM
Old 08-16-2010
Quote:
Originally Posted by NycUnxer
How? lol

All the lines in that file look like parameters:
tty2:2:respawn:/usr/sbin/getty /dev/tty2

I just want to add /usr/local/bin/startsmb
Code:
mkitab smb:2:once:/usr/sbin/smbd
mkitab nmb:2:once:/usr/sbin/nmbd

This User Gave Thanks to ygemici For This Post:
 

9 More Discussions You Might Find Interesting

1. AIX

AIX 4.3.3 boot error

We just got a machine with pre installed AIX 4.3.3. It's and oldish RS/6000 F80. When I power it on, the boot sequence advances finely, until it says Welcome to AIX, closing stdin and stdout, or something like that. From that point on the diagnostic display keeps counting the usual way for... (3 Replies)
Discussion started by: osee
3 Replies

2. UNIX for Dummies Questions & Answers

AIX scripts

Hi I need to schedule some tasks on AIX. At first I must copy files from folder on second AIX server to my primary server. This job schould be done in 1 hour intervals. I want to get only new files. Second script is needed for old files cleaning. It is necesary to delete files older than... (3 Replies)
Discussion started by: piooooter
3 Replies

3. UNIX for Dummies Questions & Answers

Boot scripts?

Hello, I am new to Solaris. I have installed a Solaris 10.0. As default its shell is sh (#) and I want to modify boot records of my Solaris. I want to run some shell scripts, change shell, change PATH environment and similiar things after boot automaticially. I don't know which files are read... (1 Reply)
Discussion started by: XNOR
1 Replies

4. AIX

AIX hangs on boot

Hi guys, Got a tiny bit of a problem on one of our servers here at work. I installed AIX 5.3 on the server and that went fine. Then I upgraded to ML 5300-05-01, but now the system just hangs on boot. The system starts up and the monitor comes on in few minutes, but a few seconds later when... (6 Replies)
Discussion started by: drchris
6 Replies

5. Ubuntu

system not booting after running local boot scripts

I have two systems in my computer . I update the ubuntu system these days and always interrupt it and exit the system . now the system cannot boot after Running local boot scripts(/etc/rc.local), it just stops there. i have to terminate the gnome display manager. what can i do with it ? thank... (0 Replies)
Discussion started by: tcb3210
0 Replies

6. AIX

AIX does not boot after power on

We have a RS6000, model B50, type 7046, where I installed AIX 4.3.3 But, if the power goes off, the operating system does not restart, and I have to go there and push the button to start AIX again. Is there any way this procedure to be avoided, this is, I want the AIX to start automatically... (9 Replies)
Discussion started by: sebastia.net
9 Replies

7. Solaris

Autorun shell scripts upon system boot up

Hello i searched in google and it seems i cannot find a detailed instruction on how to setup autorun-ing custom shell script upon boot up, someone kind enough to point me to a link? or a guide. We use Solaris 10. Basically my script just contains sending email when system bootup. (3 Replies)
Discussion started by: ryandegreat25
3 Replies

8. AIX

Can't boot AIX

Good afternoon there, One of my friend gave me an old IBM 44P Model 170 (I've planned to use it to learn AIX that I don't know at all) (I know a bit GNU/Linux (Debian, Archlinux, Red Hat, Slackware)). But, unfortunately, the computer doesn't start properly and I don't have any idea why ;(. ... (6 Replies)
Discussion started by: firstpost
6 Replies

9. Red Hat

Boot/Shutdown scripts

Server: Redhat 6.2 Goal: Startup script/Shutdown Script Overview: I'm just doing a very basic test. I'm not getting chkconfig involved. Research so far: I've found a few different ways of getting this to work, some say I can just drop the scripts in the corresponding rc directory. Others... (4 Replies)
Discussion started by: HayekSplosives1
4 Replies
RUNGETTY(8)						     Linux Programmer's Manual						       RUNGETTY(8)

NAME
rungetty - a minimal console getty that can run any process SYNOPSIS
rungetty [--noclear] [--long-hostname] [-u username] [-g group] [-w path] [-n priority] [--prompt [=string]] [-d n] [--autologin username] tty [--] [command] [arguments] DESCRIPTION
rungetty is a getty for use on virtual consoles which has the ability to run any program, not just login(1). Like mingetty(8), on which rungetty is based, rungetty isn't suitable for serial use. Both I and the author of mingetty(8) recommend mgetty(8) for that. It is useful, though, for keeping programs such as, say, telnet(1), running at all times. When running a program other than login, it is executed as the user and group nobody, or the user specified by username and group specified by group. OPTIONS
--noclear Do not clear the screen before prompting for the login name (the screen is normally cleared). --long-hostname By default the hostname is only printed until the first dot. With this option enabled, the full text from gethostname() is shown. -u username By default, rungetty runs programs as nobody. With this option, it runs as the user username. -g group By default, rungetty runs as the group nobody. This option allows you to tell rungetty to run programs as the group group. --prompt [=string] This option causes rungetty to wait until user input (usually an 'Enter') before executing the program. If string is specified, it will be displayed. Otherwise, a default prompt will be shown. -n n 'nice' value of specified program. -w path Working directory of specified program. -d n Specifying -d will make rungetty wait n seconds before running the specified program. --autologin username Log the specified user onto the console (normally /dev/tty1) when the system is first booted without prompting for a username or password. When the autologin option is supplied, rungetty will check that the controlling terminal is the console (normally /dev/tty1), that a reasonable username has been supplied, and that this is the first autologin request since the system has booted. If all of these conditions have been met, a request for an unauthenticated login is passed to the login program. Otherwise, a normal interactive login is performed. The login program may deny the request for an unauthenticated login. Typically this will happen when the user is root, has a UID of 0, or whenever a normal interactive login would be denied due to the access restrictions specified in the nologin, usertty, or securetty files. Only a single autologin request will be issued after a system boot. If the automated login request is denied, or if the user logs out, rungetty will revert to performing normal interactive logins for all subsequent login requests. -- Tells rungetty that there are no more options to parse, useful for passing arguments with a - in them to the external program. ARGUMENTS
tty Name of the tty to run on. command Runs specified command. Searches for command in /bin, /usr/bin, /usr/ucb, /usr/local/bin if the complete pathname and filename are not given. [arguments] Command line arguments to pass to command. ISSUE ESCAPES
rungetty recognizes the following escapes sequences which might be embedded in the /etc/issue file: d insert current day (localtime), l insert line on which rungetty is running, m inserts machine architecture (uname -m), inserts machine's network node hostname (uname -n), o inserts domain name, inserts operating system release (uname -r), insert current time (localtime), s inserts operating system name, u resp. U the current number of users which are currently logged in. U inserts "n users", where as u only inserts "n". v inserts operating system version (uname -v). EXAMPLE
In /etc/inittab, these lines: r1:12345:respawn:/sbin/rungetty tty1 r2:2345:respawn:/sbin/rungetty tty2 telnet mail.foo.com r3:2345:respawn:/sbin/rungetty tty3 -u support top r4:2345:respawn:/sbin/rungetty tty4 -n 20 -w /etc rc5des Would run a local login on /dev/tty1,a telnet(1) session to mail.foo.com on /dev/tty2,and top(5)on /dev/tty3. Note that telnet(1) is run as user nobody, while top(5) is run as user support, and start the program rc5des(5) at the lowest priority level with a current directory of /etc. FILES
/etc/issue, /var/run/utmp, /var/log/autologin. BUG REPORTS
Please send all bug reports to jake@nodomainname.net. BUGS
There are no known bugs. SEE ALSO
mingetty(8), mgetty(8). AUTHOR
Copyright (C) 1999 Jakob Kaivo <jake@nodomainname.net>. Jakob 'sparky' Kaivo 04 February 1999 RUNGETTY(8)
All times are GMT -4. The time now is 07:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy