* startup scripts under 4.0
@ 1997-01-20 5:00 Frank Jendraszak
1997-01-20 5:00 ` Aleksandar Milivojevic
1997-01-20 5:00 ` Stephen Stuart
0 siblings, 2 replies; 4+ messages in thread
From: Frank Jendraszak @ 1997-01-20 5:00 UTC (permalink / raw)
How or where do I add a line to start up a process at boot time?
i.e., I'd like to start my own daemon at boot time.
Do I put it into rc.config, rc.config.site? What is the syntax?
Thanks,
Frank
--
Frank Jendraszak fjj@wwa.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: startup scripts under 4.0
1997-01-20 5:00 startup scripts under 4.0 Frank Jendraszak
@ 1997-01-20 5:00 ` Aleksandar Milivojevic
1997-01-25 5:00 ` Peter deFriesse
1997-01-20 5:00 ` Stephen Stuart
1 sibling, 1 reply; 4+ messages in thread
From: Aleksandar Milivojevic @ 1997-01-20 5:00 UTC (permalink / raw)
Frank Jendraszak (fjj@sashimi.wwa.com) wrote:
>
> How or where do I add a line to start up a process at boot time?
>
> i.e., I'd like to start my own daemon at boot time.
>
> Do I put it into rc.config, rc.config.site? What is the syntax?
Put a script that will start your daemon in /sbin/rc3.d directory. You
should name your script something like Sxxsomething, where xx is a
number (scripts are executed in alphabetic order). Your script should
accept at least 'start' and 'stop' parameters (for starting and
stopping your daemon). Look in existing scripts to see how it should
look like.
--
Aleksandar Milivojeviďż˝ http://jagor.srce.hr/~alex/
e-mail: alex@srce.hr
================================ooooO=Ooooo==============================
"I believe OS/2 is destined to be the most important
operating system, and possibly program, of all time."
-- Bill Gates, OS/2 Programmer's Guide foreward, 1987
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: startup scripts under 4.0
1997-01-20 5:00 ` Aleksandar Milivojevic
@ 1997-01-25 5:00 ` Peter deFriesse
0 siblings, 0 replies; 4+ messages in thread
From: Peter deFriesse @ 1997-01-25 5:00 UTC (permalink / raw)
Somewhere off the top of my screen in article
<gllo9os1ae.fsf@bjesomar.srce.hr>,
the esteemed alex@srce.hr said:
>Frank Jendraszak (fjj@sashimi.wwa.com) wrote:
>>
>> How or where do I add a line to start up a process at boot time?
>>
>> i.e., I'd like to start my own daemon at boot time.
>>
>> Do I put it into rc.config, rc.config.site? What is the syntax?
>
>Put a script that will start your daemon in /sbin/rc3.d directory. You
>should name your script something like Sxxsomething, where xx is a
>number (scripts are executed in alphabetic order). Your script should
>accept at least 'start' and 'stop' parameters (for starting and
>stopping your daemon). Look in existing scripts to see how it should
>look like.
>
DANGER WILL ROBINSON! (I always wanted to type that.)
Be aware that Some #*(^@&*%^ designed the system so that
each script is sent a HUP after invocation. This "design
feature" caused me endless hours of frustration with a
number of commercial and shareware products.
The "feature" may have been fixed at 4.0, but it is still
in 3.2g
--
peter defriesse \\ computing facilities management \\ OIT \\ UMass
[OIT doesn't opine for me. I return that courtesy..]
Sysadmins don't go to hell; we're already doing our time in purgatory.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: startup scripts under 4.0
1997-01-20 5:00 startup scripts under 4.0 Frank Jendraszak
1997-01-20 5:00 ` Aleksandar Milivojevic
@ 1997-01-20 5:00 ` Stephen Stuart
1 sibling, 0 replies; 4+ messages in thread
From: Stephen Stuart @ 1997-01-20 5:00 UTC (permalink / raw)
Frank Jendraszak (fjj@sashimi.wwa.com) wrote:
: How or where do I add a line to start up a process at boot time?
:
: i.e., I'd like to start my own daemon at boot time.
:
: Do I put it into rc.config, rc.config.site? What is the syntax?
You have two choices: write a script like you find in /sbin/init.d/ to
start/stop your daemon anmd symlink it to the directory for the run
level that you want, or put a line in /etc/inittab. "man rc3" will
tell you about the first option, "man inittab" about the second.
rc.config and rc.config.site are where environment variables used by
the scripts in /sbin/init.d are defined. "man rcmgr" for details.
Stephen
--
- -----
Stephen Stuart stuart@pa.dec.com
Network Systems Laboratory
Digital Equipment Corporation
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1997-01-25 5:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-01-20 5:00 startup scripts under 4.0 Frank Jendraszak
1997-01-20 5:00 ` Aleksandar Milivojevic
1997-01-25 5:00 ` Peter deFriesse
1997-01-20 5:00 ` Stephen Stuart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox