It may be advisible to run the cron say every 10 minutes to allow the fault time to develop and to avoid overlapping kill scripts.
@ukndoit
Normally I would have a rant about using "kill -9" (instead of a tidier kill command) but I recognise that orphan and looping ".cgi" processes are common and somewhat difficult to kill.
hi, i had an applicatoin which is not running cos one of its daemon is not running.. i get the applicatoin to run by running the daemon first... its manual job... so quite cumbersome..
i have backups in the night, with the crontab -l entry with logs written. the logs indicated successful... (7 Replies)
I have simple shell script that I run as cron job every hour of the day. I would like to make it a daemon that runs far more frequently like every 30 seconds or so, but I have never made daemon before. How can I do this?
-Sam (7 Replies)
hi
i want to create a daemon under unix or linux but i don't really know how so i will be grateful if you provide me links with examples or /andx how to do it
thanks (2 Replies)
I actually posted this problem on a different forum, but figured this would be a more appropriate place to post it.
OK so I've created my own shell, but I can't get the background process function to run properly! What I want to do is to run a process in the background, and also print when the... (2 Replies)
Looking for a logic where say i have a script called parent_script which is used to call other 4 to 5 child scripts in background as..
cat parent_script # containing 65 lines
1
2
..
35 while read child_script
36 do
37 ./child_script_name&
38 done< ${SCRIPT_LISTS}
39
40 # Need to have... (2 Replies)
Hi,
HI ,
I have a simple script that moves files from one folder to another folder, I have already done the open-ssh server settings and the script is working fine and is able to transfer the files from one folder to another but right now I myself execute this script by using my creditianls to... (3 Replies)
Hi,
I have one query that is suppose if I have a script that pick up some files from source folder and put it into destination folder , and I want this script to run after every 1 hour, to make it configurable as per that I have options like crontab and nohup but when I test this script I have to... (2 Replies)
Discussion started by: nks342
2 Replies
LEARN ABOUT SUSE
mono-service
Mono(Mono 1.0) Mono(Mono 1.0)
NAME
mono-service, mono-service2 - Mono ServiceProcess host
SYNOPSIS
mono-service [options] program.exe
DESCRIPTION
The mono-service is a host to run services built with the ServiceProcess assembly.
Use mono-service to run services that use the 1.0 assemblies and use mono-service2 to run services that use the 2.0 assemblies.
Services can be paused by sending the SIGUSR1 signal to the process, and execution can be resumed by sending the SIGUSR2 signal. The ser-
vice can be cleanly shutdown by sending the SIGTERM signal to the process.
Mono programs started with mono-service run with the MONO_DISABLE_SHM variable set. This means that certain Mono features that depend on
it are not available to services.
The following options can be used to control the service:
-d:DIRECTORY
Use this option to specify the working directory for the service. The default is the current directory.
-l:LOCKFILE
Specifies the file to use for locking, the default is a filename constructed in /tmp based on the name of the program that hosts the
service.
-m:MESSAGE
Name to show in the syslog.
-n:NAME
Use this to specify the service to be launched (if the program contains more than one service). The default is to run the first
defined service.
--debug
Use this option to prevent mono-service from redirecting stdin and stdout and prevent the program to be sent to the background.
Equivalent to --no-daemon
--no-daemon
Use this option to prevent mono-service from redirecting stdin and stdout and prevent the program to be sent to the background.
Equivalent to --debug.
CONTROL
You can control the service by sending signals to the process, you can use the following commands:
Pausing service:
kill -USR1 `cat <lock file>`
Resuming service:
kill -USR2 `cat <lock file>`
Stopping the service:
kill `cat <lock file>`
EXAMPLES
Start the MyService.exe assembly, with a lock in /root/service-lock:
mono-service -l:/root/service-lock MyService.exe
DEBUGGING
Messages produced by the service are logged on syslog.
MAILING LISTS
Visit http://lists.ximian.com/mailman/listinfo/mono-list for details.
WEB SITE
Visit: http://www.mono-project.com for details
SEE ALSO mono(1)
N:System.ServiceProcess
Mono(Mono 1.0)