I am working on a project, which need to constantly watch the process, and check its status, if it was dead, it should be restart automatically.
Please kindly refer me to URL which teach how to write this kind of script, or service.
Thanks. (1 Reply)
hi all
How can I make a program start up automatically after the computer restart/startup in fedora?
something like:
... Establish a shell then run some of command code.
Thanks for Help!! (1 Reply)
hi,
I need a command that restart the tomcat server.
for example for restart the tomcat i am using following command, /etc/init.d/tomcat restart ..but sometimes is not working...might be i want to use java code access this peace of script.
like using the grep and ps commands can i use?... (2 Replies)
I am new to AIX shell scripting, please help......
I want to write a automatically restart script for one of my application. For example, the application name: ABC (you can see its ID from ps -ef | grep ABC). It can be started by ABC.sh file but it has to be stopped by using "ps -ef | grep ABC"... (2 Replies)
Hi everyone,
- I have CentOs server 5.4 , I usually remote by ssh.
- My problem is server usually restart but I don't reason. I check log in file /var/log/messages: I don't see "signal 15" which kernel have to receive before restart. Everyone can see in attach.
- I try to restart with command... (3 Replies)
Hi
My i ask how to restart the Xvnc server running on a solaris box. This is the Xvnc server running process:
Xvnc:1 -httpd /usr/local/vnc/classes -geometry 1024x768 -rfbwait 5000 -rfauth <dir> -rfbport <port no> -alwaysshared
Additional Question:
1. Should i kill the process and restart... (1 Reply)
Hello all:
I am new to LINUX/UNIX administration task. My Infrastructure admin has allocated me a special lab server in client location. Per my requirement, had chanted few settings in LINUX/UNIX and need to reboot the server. I am the "root" user. I had used "shutdown -r now" at command line... (3 Replies)
Hi,
I have a couch Db server running. I have written a script which will check and kill the multiple instances of the same and then start again a new one.
Now when i start the db server manually, the UI of the DB is accessible via browser. But when i do the same using cronjob, the UI of... (0 Replies)
Hi,
Unix AIX, on WebLogic
How to Restart the web server
Thank you. (2 Replies)
Discussion started by: big123456
2 Replies
LEARN ABOUT SUNOS
uadmin
uadmin(2)uadmin(2)NAME
uadmin - administrative control
SYNOPSIS
#include <sys/uadmin.h>
int uadmin(int cmd, int fcn, uintptr_t mdep);
The uadmin() function provides control for basic administrative functions. This function is tightly coupled to the system administrative
procedures and is not intended for general use. The argument mdep is provided for machine-dependent use and is not defined here.
As specified by cmd, the following commands are available:
A_SHUTDOWN The system is shut down. All user processes are killed, the buffer cache is flushed, and the root file system is unmounted.
The action to be taken after the system has been shut down is specified by fcn. The functions are generic; the hardware
capabilities vary on specific machines.
AD_HALT Halt the processor(s).
AD_POWEROFF Halt the processor(s) and turn off the power.
AD_BOOT Reboot the system, using the kernel file.
AD_IBOOT Interactive reboot; user is prompted for bootable program name.
A_REBOOT The system stops immediately without any further processing. The action to be taken next is specified by fcn as above.
A_DUMP The system is forced to panic immediately without any further processing and a crash dump is written to the dump device
(see dumpadm(1M)). The action to be taken next is specified by fcn, as above.
A_REMOUNT The root file system is mounted again after having been fixed. This should be used only during the startup process.
A_FREEZE Suspend the whole system. The system state is preserved in the state file. The following subcommands, specified by fcn,
are available.
AD_COMPRESS Save the system state to the state file with compression of data.
AD_CHECK Check if your system supports suspend and resume. Without performing a system suspend/resume, this com-
mand checks if this feature is currently available on your system.
AD_FORCE Force AD_COMPRESS even when threads of user applications are not suspendable.
Upon successful completion, the value returned depends on cmd as follows:
A_SHUTDOWN Never returns.
A_REBOOT Never returns.
A_FREEZE 0 upon resume.
A_REMOUNT 0.
Otherwise, -1 is returned and errno is set to indicate the error.
The uadmin() function will fail if:
EBUSY Suspend is already in progress.
EINVAL The cmd argument is invalid.
ENOMEM Suspend/resume ran out of physical memory.
ENOSPC Suspend/resume could not allocate enough space on the root file system to store system information.
ENOTSUP Suspend/resume is not supported on this platform or the command specified by cmd is not allowed.
ENXIO Unable to successfully suspend system.
EPERM The {PRIV_SYS_CONFIG} privilege is not asserted in the effective set of the calling process.
dumpadm(1M), kernel(1M), uadmin(1M), privileges(5)
1 Sep 2005 uadmin(2)