Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 May 2004 14:43:38 +1000
From:      Murray Taylor <murraytaylor@bytecraftsystems.com>
To:        Gerard Seibert <gerard-seibert@rcn.com>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Proper way to start a program at log-on
Message-ID:  <1085373818.33247.11.camel@wstaylorm.dand06.au.bytecraft.au.com>
In-Reply-To: <Pine.WNT.4.60.0405231754520.3584@Treneq>
References:  <Pine.WNT.4.60.0405231754520.3584@Treneq>

next in thread | previous in thread | raw e-mail | index | archive | help
Make a shell script like the ones in /usr/local/etc/rc.d to start and
stop the process.

The script MUST be named whatever.sh and must be executable. It must
accept start and stop as parameters.

This is the general solution. There is probably a doc reference for it 
but I havent looked.

mjt


On Mon, 2004-05-24 at 07:58, Gerard Seibert wrote:
> Since I am still new to this OS, I thought that I would check to make sure 
> that I am doing this correctly.
> 
> On my WinXP machine, I run the Distributed Net 'dnetc' program. Further 
> information regarding this program is available here: 
> http://www.distributed.net//docs/tutor_clients.php.
> 
> To start the program in the background I need to issue the following 
> command: 'dnetc -quiet'. Since I want to start this program automatically 
> each time I log on, I placed that command at the end of my '.bash_profile' 
> file. I then placed the shutdown command 'dnetc -shutdown' in the 
> '/etc/rc.shutdown' file.
> 
> Since everything seems to be workings correctly, I assume that I have done 
> this correctly. If there is a better way to do this, I would appreciate 
> receiving the information.
> 
> Thanks!
> 
> Gerard E. Seibert
> gerard-seibert@rcn.com
> 
> 
> 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
> 
> ************************************************************************
> This Email has been scanned for Viruses by MailMarshal.
> ************************************************************************
-- 
Murray Taylor
Special Projects Engineer
---------------------------------
Bytecraft Systems & Entertainment
P: +61 3 8710 2555
F: +61 3 8710 2599
D: +61 3 9238 4275
M: +61 417 319 256
E: murraytaylor@bytecraftsystems.com
or visit us on the web
http://www.bytecraftsystems.com
http://www.bytecraftentertainment.com



************************************************************************
This Email has been scanned for Viruses by MailMarshal.
************************************************************************



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1085373818.33247.11.camel>