Hi guys I want to start a service and a script SiteMonitor.sh at startup.
Quote:
Here is brief working of SiteMonitor.sh
(This script monitors the ip addresses of machines which are using http service of the host.
This script checks this after every 5 seconds therefore i have run it at background.
)
To start with i have modified /etc/rc.local file.
Here is the content of my /etc/rc.local file.
My problem is after i restart the machine only SiteMonitor.sh script get
executed but the command service httpd start doesnt .Therefore i have to manually login to the system and fire service httpd start to start apache.
I would also like to know whether the script SiteMonitor.sh is running or not?
How would i do that?
Hi All,
My OS is redhat 7.1. How can I start my own service (e.g. simple scripts) when the system is started?
I found something like /etc/rc.d, /etc/rc.init ...
But I have no idea on them, have anyone can help me?
regards
wilson (6 Replies)
Fedora Core2
Jabberd 1.4.2 quickstart
Anyone using a jabber server?
Do you know how to have it startup when booting? I can't seem to figure that part out.
Jeff (1 Reply)
Hi,
I'm new to AIX, and have to make some services start at system startup. The IBM-Redbook says I have to edit /etc/inittab. As a long time (Debian)-Linux Admin I'm a bit confused. Is there something like /etc/init.d/$SERVICE in AIX?
Greetings,
Dennis (1 Reply)
Dear All,
When i am start the service netd i am facing the problem
0513-015 The inetd Subsystem could not be started
Please check subsystem resources and try again later.
please suggest me.
It is urgent (1 Reply)
Hello Friends,
Does anyone know how to create a startup script for Jboss on IBM AIX 5.3?
Please help me, I'd be highly grateful to you...
Thanks & Regards,
Vinit (0 Replies)
Hi,
I want to modify some of the services/processes (related to the oracle database) to start automatically at the startup of the server.
which commands may help me?
which commands do I need to use?
my server configuration is, in brief:
hardware:IBM P550 / OS : AIX 5300
thanks,... (1 Reply)
Hi guys:
i have a Solaris 10 development server and a Solaris 9 production server. The entire task must be done in the dev. server. When it's done and all the testing is OK, the script or files are transfer to prod. Server.
All right. Now I have to figure out a way to put a script to initiate... (2 Replies)
Environment
Solaris 9
I have configured the Solaris9 as NTP client in which Solaris9 is syncing the time with a windows2008 R2 Server which is runing fine. Now I want that the xntpd service should start at startup. I did this via a script. Kindly correct if I did any thing wrong:
1.)Made... (9 Replies)
Hello,
I am in the process of learning Linux OS.
How do I run the below lines of code automatically as root on server startup.
cd /opt/program_folder/ServiceManager/bin
nohup ./servce_manager DEV &
Currently, as soon as the server is up and running I log in as root (as this... (6 Replies)
Hello all,
I have read just about every rpcbind not starting thread and article on the internet it seems, but I have not found a solution to my problem as of yet. I have a solaris 10 server that has been running with no problems for a while. The other day it crashed and would not boot to the gui... (2 Replies)
Discussion started by: Madrox72
2 Replies
LEARN ABOUT OPENDARWIN
consolemessage
ConsoleMessage(8) BSD System Manager's Manual ConsoleMessage(8)NAME
ConsoleMessage -- Send a message to SystemStarter
SYNOPSIS
ConsoleMessage [-v] message
ConsoleMessage [-v] -S
ConsoleMessage [-v] -F
ConsoleMessage [-v] -s service
ConsoleMessage [-v] -f service
ConsoleMessage [-v] -q setting
ConsoleMessage [-v] -b path
ConsoleMessage [-v] -u
DESCRIPTION
The ConsoleMessage utility may be used by startup item scripts to send messages to SystemStarter (see SystemStarter(8)).
The default behavior is to send the specified message to SystemStarter to be displayed on the console. SystemStarter will attempt to local-
ize the string using the current startup item's localization dictionaries.
ConsoleMessage may also be used to give feedback to SystemStarter indicating which services provided by the startup item have succeeded or
failed.
OPTIONS -v verbose mode (prints errors to stdout)
-S mark all services provided by this item as successful
-F mark all services provided by this item as failed
-s mark the service as successful
-f mark the service as failed
-q query SystemStarter for the value of the configuration variable setting (result will be printed to stdout).
-b Tell SystemStarter to load the display bundle at the specified path
-u Tell SystemStarter to unload the current display bundle
NOTES
When a service name is not specified, ConsoleMessage assumes its parent process identification (see getppid(2)) is that of a startup item
script, and uses that token to find the correct list of services provided by the current item. If the process calling ConsoleMessage is not a
startup item script, it is necessary to explicitly provide service names.
SEE ALSO SystemStarter(8)
http://www.opensource.apple.com/projects/documentation/howto/html/SystemStarter_HOWTO.html
HISTORY
The ConsoleMessage utility appeared in Darwin 6.0
Darwin April 12, 2002 Darwin