11-03-2017
Quote:
Originally Posted by
hicksd8
So when this occurs some resource is no longer available. Could that be a network connection to a redundant system? Some resource is not available causing the CPU to sleep the process indefinitely. Could the process under certain error conditions be calling for a vast amount of memory that the system doesn't have? If the process usually runs just fine then this problem occurs in unusual/faulty circumstances (eg, a remote connection goes down).
Yes you got it right, my one observation is: This error occurs due to the incomplete transfer of database to the remote server(Cause may be the link disconnection or SFTP interruption), and the process failed in-between due to non-complete schema of the database. From then onward I am getting the "Advertise Error".
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I host a couple of Call of Duty gameing servers. There are some hackers who love the crash them. When they crash them it simply causes a segmentaion fault and kills the PID. I was wondering it you could help me write a script to simply restart the program after it has been crashed. The... (9 Replies)
Discussion started by: Phobos
9 Replies
2. Shell Programming and Scripting
Hi Friends,
I am new to this forum as well as new to shell scripting.
I have a problem here and i need someone to solve this.
Let us consider there are two processes(abc & def).There is a script which kills these two processes(i.e killtheprocess abc). Here abc is the argument .
There is a... (1 Reply)
Discussion started by: Prince89
1 Replies
3. Shell Programming and Scripting
I had issues with processes locking up. This script checks for processes and kills them if they are older than a certain time.
Its uses some functions you'll need to define or remove, like slog() which I use for logging, and is_running() which checks if this script is already running so you can... (0 Replies)
Discussion started by: sukerman
0 Replies
4. UNIX and Linux Applications
have two scripts on Unix; one that starts some processes and the other one for killing a process. At first, I ran the .sh without WILY in it and it worked perfectly; in this way, I could also ran my stopper process. However I need WILY in this so I added it to my script but this time, a message... (1 Reply)
Discussion started by: nerdogan551
1 Replies
5. UNIX for Dummies Questions & Answers
Hi,
How is it possible to restart only your process. I can get the process killed but I am not able to start it.
For eg : i first did this ps -ef|grep _out --displays all the process with _out in the name
then I killed kill -15 36044 -- process id.
Now how can i start the same... (1 Reply)
Discussion started by: TH3M0Nk
1 Replies
6. Solaris
Hi,
I'm new to Solaris. I have an issue with ssh service. When I restart the service it exits with an exit status of 0
$svcadm restart svc:/network/ssh:default
$echo $?
0
$
However, the service goes into maintenance mode after restart. I'm able to connect even though the service is in... (3 Replies)
Discussion started by: maverick_here
3 Replies
7. Shell Programming and Scripting
Hi friends,
I have one unix command which is used to check the network status manually.
followig is the command
check_Network this command give follwoing status
Network 1 is ok
Network 2 is ok
network 3 is ok
network 4 is ok
.
.
.
.
Network 10 is... (8 Replies)
Discussion started by: Nakul_sh
8 Replies
8. BSD
Hi Experts,
I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state.
On doing cat /proc/<pid>wchan showing the "__init_begin" in the output.
Can you please help me here... (0 Replies)
Discussion started by: naveeng
0 Replies
9. UNIX for Advanced & Expert Users
Hi Experts,
I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state.
On doing cat /proc/<pid>wchan showing the "__init_begin" in the output.
Can you please help me here... (1 Reply)
Discussion started by: naveeng
1 Replies
10. UNIX for Advanced & Expert Users
Hi Experts,
I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state.
On doing cat /proc/<pid>wchan showing the "__init_begin" in the output.
Can you please help me here... (6 Replies)
Discussion started by: naveeng
6 Replies
LEARN ABOUT NETBSD
nanosleep
NANOSLEEP(2) BSD System Calls Manual NANOSLEEP(2)
NAME
nanosleep -- high resolution sleep
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <time.h>
int
nanosleep(const struct timespec *rqtp, struct timespec *rmtp);
DESCRIPTION
The nanosleep() suspends execution of the calling process until either the number of seconds and nanoseconds specified by rqtp have elapsed
or a signal is delivered to the calling process and its action is to invoke a signal catching function or to terminate the process. The sus-
pension time may be longer than requested due to the scheduling of other activity by the system. The struct timespec is described in
timespec(3).
RETURN VALUES
If the nanosleep() function returns because the requested time has elapsed, the value returned will be zero.
If the nanosleep() function returns due to the delivery of a signal, the value returned will be the -1, and the global variable errno will be
set to indicate the interruption. If rmtp is non-NULL, the timespec structure it references is updated to contain the unslept amount (the
request time minus the time actually slept).
ERRORS
If any of the following conditions occur, the nanosleep function shall return -1 and set errno to the corresponding value.
[EFAULT] Either rqtp or rmtp points to memory that is not a valid part of the process address space.
[EINTR] nanosleep was interrupted by the delivery of a signal.
[EINVAL] rqtp specified a nanosecond value less than zero or greater than 1000 million.
[ENOSYS] nanosleep is not supported by this implementation.
SEE ALSO
sleep(3), timespec(3)
STANDARDS
The nanosleep() function conforms to IEEE Std 1003.1b-1993 (``POSIX.1'').
BSD
May 17, 2010 BSD