03-14-2020
Quote:
When i start the script it will keep on updating status to db, when i stopped it , it will stop processing updating status to db. But killing the process wont work as i tested these will give stuck data or failures.
Exactly what was expected, so in other words we cannot help you more with the information given, as we do not know how to stop the application gracefully, and as we don't know the OS we have no idea if it provides init script templates
If this application were part of a vendor's solution it sure has given you information on how to create a start/stop script if it was not delivered with, this is basic since what happens in case of server failure? or reboot, How will it start automatically without?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello Everybody..
I've written the script that kick off through CRON job and kill itself by specific time.
I've start time and end time specify in env file.
i.e
START_TIME=1500 (03:00 PM)
END_TIME=0600 (06:00 AM)
It always works good if my START_TIME is before midnight and my... (4 Replies)
Discussion started by: nirav_soni
4 Replies
2. Shell Programming and Scripting
Hi
I have a script that performs a process on a file.
I want to know how to include a function to run a batch of files?
Here is my script
#!/bin/bash
#----------------------------------------------------------------------------------------------------------------------
#This... (2 Replies)
Discussion started by: ladyAnne
2 Replies
3. Emergency UNIX and Linux Support
Dear Forum experts
I have the below script which I made to run under bash shell, it runs perfectly for low records number, let us say like 100000. when I put all records (3,000,000), it's takes hours
can you please suggest anything to optimize or to run in different way :-|
{OFS="|";... (6 Replies)
Discussion started by: yahyaaa
6 Replies
4. Shell Programming and Scripting
Unix Gurus,
I have a requirement where the shell script needs to do specific tasks after certain period of time.
Daily we receive few files in a particular folder. The script does the file renaming, pass parameters to run some web services and pushes to remote FTP location.
But my... (3 Replies)
Discussion started by: shankar1dada
3 Replies
5. Shell Programming and Scripting
Hi All,
newbie here, I'm just wondering how can i know the exact running time of my script?
Please advise,
THanks, (1 Reply)
Discussion started by: nikki1200
1 Replies
6. Shell Programming and Scripting
i want to make a script for grep any lines with key word and every time (5 min)
Ex. Log in Server.
.
.
.
03-01-2012 03:07:54,924 - INFO MessageUtil - Return | Status=0 | TxID=12010300000548755292 | Message=Success
03-01-2012 03:09:13,789 - INFO MessageUtil - Return | Status=0 |... (6 Replies)
Discussion started by: ooilinlove
6 Replies
7. Shell Programming and Scripting
Hi,
Do anybody experience to write a bash script in order to kill a specific process (java) after certain time of running?
eg.
java java.jar task_run.txt
I will run a java program (java.jar) which will run a long list of process (task_run.txt) one by one.
I plan to terminate the java... (5 Replies)
Discussion started by: perl_beginner
5 Replies
8. Shell Programming and Scripting
Dear all,
I wonder if it is possible that we can run the script
from time to time..I meant, it should repeat the
sourcing of the script by itself? In my case, I need
to source this script manually from time to time,
like once in every 10 minutes.
emily, (2 Replies)
Discussion started by: emily
2 Replies
9. Shell Programming and Scripting
Hi,
I want to write a script that does some sort of health check on the database. It will query the database for information, some query takes long and some are quick.
For example, inside the script I will do something as below:
#!/bin/ksh
run_query_01 &
run_query_02 &... (1 Reply)
Discussion started by: newbie_01
1 Replies
10. Shell Programming and Scripting
I am trying to run a script from crontab but the entire script (which is 70+ lines) is written in bash and I need it to run from a certain directory.
So when I run it manually I cd to /local/mnt/scr and then type ./reordersc and it works fine.
However, I want it to run from the crontab and I... (20 Replies)
Discussion started by: newbie2010
20 Replies
LEARN ABOUT X11R4
ncakmod
ncakmod(1) User Commands ncakmod(1)
NAME
ncakmod - start or stop the NCA kernel module
SYNOPSIS
/etc/init.d/ncakmod start | stop
DESCRIPTION
ncakmod is used to start or stop the Solaris Network Cache and Accelerator ("NCA") kernel module.
When the start option is specified at the command-line, the NCA kernel module will be activated for all physical interfaces listed in the
nca.if file. When the ncakmod command is invoked with the stop option, the NCA kernel module will print the following message:
To stop NCA, please set the status configuration parameter
to disable in ncakmod.conf and then reboot your system. See
the ncakmod.conf(4) manual page for more information.
Note that in order to properly stop NCA on your system, you must first edit the ncakmod.conf(4) file and set the status field to "disable,"
then reboot your system.
OPTIONS
start Starts the NCA kernel module.
stop Describes the current method for stopping the NCA feature.
EXAMPLES
Example 1: Starting and Stopping the NCA Feature
The following command is used to start the NCA feature:
example% /etc/init.d/ncakmod start
FILES
/etc/init.d/ncakmod The NCA kernel module startup script.
/etc/nca/ncakmod.conf Specifies configuration options for the NCA kernel module.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWncar |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
nca(1), ncab2clf(1), ncad_addr(4), nca.if(4), ncakmod.conf(4), ncalogd.conf(4), attributes(5)
SunOS 5.10 28 Sep 2001 ncakmod(1)