From owner-freebsd-questions Sun Dec 17 20: 0:29 2000 From owner-freebsd-questions@FreeBSD.ORG Sun Dec 17 20:00:26 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from lcmail2.lc.ca.gov (lcmail2.lc.ca.gov [165.107.12.11]) by hub.freebsd.org (Postfix) with ESMTP id D800837B400 for ; Sun, 17 Dec 2000 20:00:25 -0800 (PST) Received: from CONVERSION-DAEMON by lcmail2.lc.ca.gov (PMDF V5.2-27 #40821) id <0G5Q00101WG9R0@lcmail2.lc.ca.gov> for freebsd-questions@FreeBSD.ORG; Sun, 17 Dec 2000 20:00:10 -0800 (PST) Received: from bigdaddy ([165.66.11.100]) by lcmail2.lc.ca.gov (PMDF V5.2-27 #40821) with SMTP id <0G5Q000NDWG6V7@lcmail2.lc.ca.gov> for freebsd-questions@FreeBSD.ORG; Sun, 17 Dec 2000 20:00:07 -0800 (PST) Date: Sun, 17 Dec 2000 20:00:16 -0800 From: Drew Tomlinson Subject: RE: How to Get Program to Start Automatically Upon Boot In-reply-to: <20001217203634.A15545@cae88-102-101.sc.rr.com> To: dmaddox@sc.rr.com, Moses Backman III Cc: Drew Tomlinson , FreeBSD Questions Message-id: MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) Content-type: text/plain; charset="us-ascii" Content-transfer-encoding: 7bit Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm just trying to start the client for a dynamic IP service I subscribe to. It's dynip.com and the client is called dynipclient. After starting up, I just need to type it at the command line. From my DOS days, I know I could put a command like that in autoexec.bat. I gather that in FreeBSD, there are scripts instead of batch files. So I am trying to do the equivalent. I see there are some old and new ways of doing this. My first version of FreeBSD was the 4.0 release so I would prefer to learn the new. I'm currently running 4.1.1 and plan to upgrade to 4.2 in the near future. Thanks for your help! Drew P.S. Are there any links you would recommend for a beginner to learn about scripts? -----Original Message----- From: Donald J . Maddox [mailto:dmaddox@sc.rr.com] Sent: Sunday, December 17, 2000 5:37 PM To: Moses Backman III Cc: Drew Tomlinson; FreeBSD Questions Subject: Re: How to Get Program to Start Automatically Upon Boot On Sun, Dec 17, 2000 at 08:20:40PM +0000, Moses Backman III wrote: > > On 2000.12.18 01:17:02 +0000 Drew Tomlinson wrote: > > I have added a program to my system and would like it to start > > automatically upon boot. I'm sure it's as simple as adding the program > > name to some startup script but I don't know where that would be. So > > what file do I need to modify? > > > > Thanks for your help! > > > > Drew > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > add to /etc/rc before the exit 0 line You should NOT edit /etc/rc. You can create an /etc/rc.local to run your program at boot, but there may be a better solution still, depending on exactly what you are trying to start. What are you trying to do, exactly? What program do you want to start? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message