From owner-freebsd-stable Wed Dec 4 19:57:39 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6437437B401 for ; Wed, 4 Dec 2002 19:57:37 -0800 (PST) Received: from lennier.cc.vt.edu (lennier.cc.vt.edu [198.82.162.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E91243E4A for ; Wed, 4 Dec 2002 19:57:36 -0800 (PST) (envelope-from netprince@vt.edu) Received: from dagger.cc.vt.edu (IDENT:mirapoint@dagger-lb.cc.vt.edu [10.1.1.11]) by lennier.cc.vt.edu (8.11.4/8.11.4) with ESMTP id gB53vWa74274 for ; Wed, 4 Dec 2002 22:57:32 -0500 (EST) Received: from ben.pfountz.com (Snell.vpec.vt.edu [128.173.89.238]) by dagger.cc.vt.edu (Mirapoint Messaging Server MOS 3.2.1-GA) with ESMTP id AWZ69117; Wed, 4 Dec 2002 22:57:30 -0500 (EST) Received: (qmail 93043 invoked from network); 5 Dec 2002 03:58:17 -0000 Received: from bpfountz.princenet (HELO benspiece) (192.168.17.101) by digitalpimp.princenet with SMTP; 5 Dec 2002 03:58:17 -0000 Message-ID: <001601c29c12$7c7f7f30$6511a8c0@benspiece> From: "Ben Pfountz" To: "Chatchawan Wongsiriprasert" Cc: References: <20021203015748.954EE43EAF@mx1.FreeBSD.org> Subject: Re: Start deamon by cron Date: Wed, 4 Dec 2002 22:57:53 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I think I recall a similar situation. I wrote a sort of soft shutdown command I used to stop all daemons before running a backup, then after the backup start them up again. Before I found the code below in /etc/rc, I would get zombie processes for some daemons that do not daemonize correctly: #!/bin/sh (set -T trap 'exit 1' 2 daemon_startup_command) where 'daemon_startup_command' is your daemon to start. hope this helps ----- Original Message ----- From: "Chatchawan Wongsiriprasert" To: Sent: Monday, December 02, 2002 8:57 PM Subject: Start deamon by cron > :: Does anyone have any experience start daemon process from cron?. > :: > :: I tried to stop my slave MySQL server every midnight for backup and the > :: restart the server after backup finished. > > >> This doesn't address your problem directly, but you could use the mysqldump > >> utility to do backups without having to take your DB down.... > > Yes, mysqldump may be the solution but I have a problem with mysqldump. > mysqldump requires a user/password which I don't want to put in the script. > > Regards, > Chatchawan Wongsiriprasert > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message > > -- Ben Pfountz Computer Science Undergrad Virginia Tech To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message