Date: Wed, 4 Dec 2002 22:57:53 -0500 From: "Ben Pfountz" <netprince@vt.edu> To: "Chatchawan Wongsiriprasert" <cws-freebsd-stable@hotel-accommodation.net> Cc: <freebsd-stable@FreeBSD.ORG> Subject: Re: Start deamon by cron Message-ID: <001601c29c12$7c7f7f30$6511a8c0@benspiece> References: <20021203015748.954EE43EAF@mx1.FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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" <cws-freebsd-stable@hotel-accommodation.net> To: <freebsd-stable@FreeBSD.ORG> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001601c29c12$7c7f7f30$6511a8c0>