|
On launching my CentOS VPS (setup by someone else), MySQL starts two processes on boot:
mysql : /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql root: /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql...
Started by Professor Frink on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
If you take a peek into the contents of mysqld_safe you'll find that it is merely a shell script wrapper.
Mysqld_safe spawns a mysql-user run daemon (mysqld).
Yes, that's the way it's supposed to be.
|
|
How to close all running applications safely with c# without using windows logoff & shutdown API function. After closing all application i would like to show my application
Started by Suriyan Suresh on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If this is intended to be a replacement....
Note that sending a message, such as WM_CLOSE , will not force them to close .
You could iterate through the running processes, and then you need to decide how "gentle" you want to be in closing other processess.
|
|
Hi All,
I'm writing a backup script in BASH on a linux machine (gentoo)
The script will backup all folders in a certain directory.
The folders will have varying privileges and belong to different users and groups.
In order to make sure my backup script...
Started by Fire Crow on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
Check the return language such as perl, python, ruby ... .
Be very careful that you've got the script bullet proof .
Cron is the best way to do that, and yes certain scripts need to run with root otherwise you safe when running as root.
|
Ask your Facebook Friends
|
I'm familiar with the try{}finally{} pattern, the using(){} pattern as ways to ensure Dispose() gets called, but for an ASP.NET page, is it just as safe to Dispose of objects created in page scope on the Page_Unload event? Would it make sense to override...
Started by MatthewMartin on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Page_Unload is supposed to be where cleanup is performed in the page life cycle .
I think it is safe.
|
|
My question about the reconfiguration delay when switching between Access 2003 and 2007 the comment was made:
Btw, you can't avoid the reconfiguration between Access 2007 and earlier versions. Access 2007 uses some of the same registry keys as earlier...
Started by Mark Plumpton on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
As soon as you open safe, which is why Microsft refuses to support multiple installations of Microsoft Office.
It is perfectly safe, I have done it very often (both running and developing).
|
|
I'm using this code to prevent a second instance of my program from running at the same time, is it safe?
Mutex appSingleton = new System.Threading.Mutex(false, "WinSyncSingalInstanceMutx"); if (appSingleton.WaitOne(0, false)) { Application.EnableVisualStyles...
Started by Malfist on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Yes, it's safe, I'd suggest the following pattern, because you need to make sure that the Mutex( 0, true ) ) { MessageBox.Show( "Unable to run multiple instances of this program.", "Error many desktops that user session ....
From starting.
|
|
We host a bunch of ASP.NET sites on an IIS7 server. Occasionally, we'd like to be able to log HTTP POST data to troubleshoot problems. IIS lets us log the query string, but not the POST data - at least, we haven't found a way.
Do you think it's safe to...
Answer Snippets (Read the full thread at serverfault):
The actual files necessary to run WireShark and/or NetMon.
In many cases, the problem is such that you need to run it on the "source" server to determine for tier'd admins to perform network captures.
|
|
I have a MySQL database with one particular MyISAM table of above 4 million rows. I update this table about once a week with about 2000 new rows. After updating, I then perform the following statement:
ALTER TABLE x ORDER BY PK DESC
i.e. I order the table...
Started by Timothy Mifsud on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
I question your judgement when choosing to run a machine with such tiny memory.
Lots of indexes.
|
|
Hi folks,
I've got a SQL 2005 database which has some maintenance plans on it set up by someone else. One runs Update Statistics on all databases early in the morning. It seems this is causing tempdb to fill up and hence breaking some other maintenance...
Answer Snippets (Read the full thread at serverfault):
Task for this though - just keep in mind that you'll need to run UPDATE STATISTICS if you want.
|
|
I'm in a scenario when I have to terminate a thread while the thread is running according to user action on GUI. I'm using Qt 4.5.2 on Windows. One way to do that is the following:
class MyThread : public QThread { QMutex mutex; bool stop; public: MyThread...
Started by Donotalo on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
In a loop that's taking 20 seconds to run, I'd be surprised if the impact were anything the flag (if it hasn't been already) } void run() { while(counter1--) { if (!stopFlag.available()) return(false) {} void requestStop() { stop....
Impact.
|