Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* HELP! How to spawn server on reboot
@ 1997-01-28  5:00 Richard Barndt
  1997-01-29  5:00 ` B.A.McCauley
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Richard Barndt @ 1997-01-28  5:00 UTC (permalink / raw)



We have an in-house server product which helps us manage remote recompile
and distribution issues across all our supported platforms.  The main
process receives recompile and copy commands and relays them to the rest of
the platforms, allowing us to recompile on 7 machines with a single
command.  

The problem is: every time one of our Unix machines is rebooted, someone
must remember to log in under the server's username and execute the
following commands:
	% nohup bin/compit&
	% exit
		Jobs running
	% exit

Is there a way to do this automatically?  The process must run under a
specific username (NOT root) to work correctly.
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Richard Barndt <richard@imt.net>
| Internet Montana | Computers Unlimited             |
| www.imt.net      | THE Computer Solution of Choice |




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: HELP! How to spawn server on reboot
@ 1997-01-29  5:00 Jean-Pierre Radley
  0 siblings, 0 replies; 6+ messages in thread
From: Jean-Pierre Radley @ 1997-01-29  5:00 UTC (permalink / raw)



Richard Barndt's CPU sent forth this bytestream:
| We have an in-house server product which helps us manage remote recompile
| and distribution issues across all our supported platforms.  The main
| process receives recompile and copy commands and relays them to the rest of
| the platforms, allowing us to recompile on 7 machines with a single
| command.  
| 
| The problem is: every time one of our Unix machines is rebooted, someone
| must remember to log in under the server's username and execute the
| following commands:
| 	% nohup bin/compit&
| 	% exit
| 		Jobs running
| 	% exit
| 
| Is there a way to do this automatically?  The process must run under a
| specific username (NOT root) to work correctly.


Try putting something in one of the /etc/rc*.d files that would do
	su some_user -c '/path/to/compit'

-- 
Jean-Pierre Radley   jpr@jpr.com   XC/XT Custodian   Sysop, CompuServe SCOForum



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: HELP! How to spawn server on reboot
  1997-01-28  5:00 Richard Barndt
@ 1997-01-29  5:00 ` B.A.McCauley
  1997-01-29  5:00 ` Bob Hauck
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: B.A.McCauley @ 1997-01-29  5:00 UTC (permalink / raw)
  To: Richard Barndt


In article <01bc0d5b$e97e8820$eaa6d4cc@RICHARD.COMP-UNLTD.COM> "Richard Barndt" <richard@imt.net> writes:
>The problem is: every time one of our Unix machines is rebooted, someone
>must remember to log in under the server's username and execute the
>following commands:
>	% nohup bin/compit&
>	% exit
>		Jobs running
>	% exit
>
>Is there a way to do this automatically?

Put in in your startup scripts. E.g. /etc/rc.d/rc.local (may have
another name, start at  /etc/inittab follow the calls.)  Alternatively
if you want it respawed whrn it dies put it directly in inittab.

>  The process must run under a
>specific username (NOT root) to work correctly.

su username -c /home/username/bin/compit &

-- 
    \\   ( )   No Bullshit!   | Email: B.A.McCauley@bham.ac.uk
 .  _\\__[oo       from       | Phones: +44 121 471 3789 (home)
.__/  \\ /\@  /~)  /~[   /\/[ |   +44 121 627 2173 (voice) 2175 (fax)
.  l___\\    /~~) /~~[  /   [ | PGP-fp: D7 03 2A 4B D8 3A 05 37...
 # ll  l\\  ~~~~ ~   ~ ~    ~ | http://wcl-l.bham.ac.uk/~bam/
###LL  LL\\ (Brian McCauley)  | Finger: bam@wcl-rs.bham.ac.uk



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: HELP! How to spawn server on reboot
  1997-01-28  5:00 Richard Barndt
  1997-01-29  5:00 ` B.A.McCauley
@ 1997-01-29  5:00 ` Bob Hauck
  1997-01-30  5:00 ` Matthew Tovey
  1997-01-31  5:00 ` Ron Wigmore - CNED/W97
  3 siblings, 0 replies; 6+ messages in thread
From: Bob Hauck @ 1997-01-29  5:00 UTC (permalink / raw)



In article <01bc0d5b$e97e8820$eaa6d4cc@richard.comp-unltd.com>,
	"Richard Barndt" <richard@imt.net> writes:

> The problem is: every time one of our Unix machines is rebooted, someone
> must remember to log in under the server's username and execute the
> following commands:

su some-user -c "/bin/command/to/run"

Put that in one of your boot scripts (e.g. /etc/rc.local).

---
 Bob Hauck                                        bobh@wasatch.com
 Wasatch Communications Group               http://www.wasatch.com



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: HELP! How to spawn server on reboot
  1997-01-28  5:00 Richard Barndt
  1997-01-29  5:00 ` B.A.McCauley
  1997-01-29  5:00 ` Bob Hauck
@ 1997-01-30  5:00 ` Matthew Tovey
  1997-01-31  5:00 ` Ron Wigmore - CNED/W97
  3 siblings, 0 replies; 6+ messages in thread
From: Matthew Tovey @ 1997-01-30  5:00 UTC (permalink / raw)
  To: Richard Barndt


Richard Barndt wrote:
> 
> We have an in-house server product which helps us manage remote recompile
> and distribution issues across all our supported platforms.  The main
> process receives recompile and copy commands and relays them to the rest of
> the platforms, allowing us to recompile on 7 machines with a single
> command.
> 
> The problem is: every time one of our Unix machines is rebooted, someone
> must remember to log in under the server's username and execute the
> following commands:
>         % nohup bin/compit&
>         % exit
>                 Jobs running
>         % exit
> 
> Is there a way to do this automatically?  The process must run under a
> specific username (NOT root) to work correctly.

All the other responses are correct, but under Digital Unix, the startup
command should be put in the /sbin/rc3.d directory. 
Rather than adding the command to one of the files already there, create
another (e.g. S999compit) and put the command in there. The scripts
beginning with 'S' in this directory are executed in order at startup.

Cheers,

Matt
-- 
Matt Tovey 				http://wwwcn.cern.ch/~mtovey

Car service: If it ain't broke, we'll break it.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: HELP! How to spawn server on reboot
  1997-01-28  5:00 Richard Barndt
                   ` (2 preceding siblings ...)
  1997-01-30  5:00 ` Matthew Tovey
@ 1997-01-31  5:00 ` Ron Wigmore - CNED/W97
  3 siblings, 0 replies; 6+ messages in thread
From: Ron Wigmore - CNED/W97 @ 1997-01-31  5:00 UTC (permalink / raw)



Richard Barndt (richard@imt.net) wrote:
: We have an in-house server product which helps us manage remote recompile
: and distribution issues across all our supported platforms.  The main
: process receives recompile and copy commands and relays them to the rest of
: the platforms, allowing us to recompile on 7 machines with a single
: command.  

Put an entry into /etc/inittab (using chinit) to have root "su" to 
the account name and execute the needed commands.  Putting startup
commands into the inittab file makes upgrading (or applying PTFs)
simpler, since you don't have to worry about any AIX system files
being overwritten in the process.

Ron,,,



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1997-01-31  5:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-01-29  5:00 HELP! How to spawn server on reboot Jean-Pierre Radley
  -- strict thread matches above, loose matches on Subject: below --
1997-01-28  5:00 Richard Barndt
1997-01-29  5:00 ` B.A.McCauley
1997-01-29  5:00 ` Bob Hauck
1997-01-30  5:00 ` Matthew Tovey
1997-01-31  5:00 ` Ron Wigmore - CNED/W97

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox