12-07-2015
Solaris 10 alternate ways of starting legacy scripts
Scenario: I have installed a service. When I start it by running /etc/init.d/<service> start it generates a massive amount of audit data (auditd) in /var/audit. So much so that running the service for any length of time is inadvisable due to overhead.
However if I reboot the system the service runs at startup and does not generate any additional audit data while performing the same functions. This tells me that what the service is and does is not relevant to the audit information generated but rather how it is started. When started interactively by the user it blows up. When started by a system process it runs flawlessly.
My question is simply is there anyway in Solaris to run startup scripts after the system boots? Or have init re-initialize the script in /etc/init.d? I am simply looking for a way to start the service in the same fashion it is started after a reboot without rebooting the box every time I want to stop/start the service. As a note it must be run as root.
10 More Discussions You Might Find Interesting
1. IP Networking
I am a Cisco Engineer and have run into a problem with the boot process for UNIX servers running Solaris 5.6 & 5.8 OS. Currently the servers boot using RARP to discover IP configuration.
This works and is OK as long as everything is on the same network where the broadcasts are free to roam.
... (2 Replies)
Discussion started by: dmerg59
2 Replies
2. Linux
Hi all,
I want to know possible ways to exceute the shell scripts on Windows environment.
Please help me.
Regards,
Uday. (2 Replies)
Discussion started by: uday123
2 Replies
3. Shell Programming and Scripting
Hi All,
I want to write a shell script which will start some application lets say "Windows media player".
Please let me know your inputs.
Thanks in advance,
Niyati (0 Replies)
Discussion started by: Niyati
0 Replies
4. Solaris
I want to add auto startup and shutdown script to Solaris 10's legacy services as they run in Solaris 9 or in Linux.
To make this work, I created the crontrol script in /etc/init.d and then link it to /etc/rc0.d and /etc/rc2.d directories. rc0.d is for shutdown and rc2.d is for srat. After I... (15 Replies)
Discussion started by: duke0001
15 Replies
5. Solaris
Instead of using an external Certification Authority CA such as Verisgn, in windows I have been told there is something called self ssl ( The server is its own Certification Authority)
In Solaris is there such an alternate?
In need it for apache.
Much appreciate for any guidence.
Thanks (2 Replies)
Discussion started by: Tirmazi
2 Replies
6. Shell Programming and Scripting
hi all
i want to debug a csh script and i give set -x for that but i get an error.
is there any command similar to set -x for csh scripts? (3 Replies)
Discussion started by: sais
3 Replies
7. Solaris
I'm looking for help with a legacy system.
I have some obsolete equipment connected to an Ultra 60 running Solaris 5.7 with the binary for a 32 bit driver. The driver is rejected by newer versions of solaris, which run 64 bit kernels.
I hope to reverse engineer the driver so that I can... (0 Replies)
Discussion started by: obsoleteStuff
0 Replies
8. Shell Programming and Scripting
Hello,
A couple weeks ago I got some great help from a few of you regarding reading an sql query into a shell script. That post can be viewed here. Thanks to all who posted.
The issue I have now is everytime I run the query I get the following error
SP2-0027: Input is too long (> 2499... (6 Replies)
Discussion started by: bbbngowc
6 Replies
9. UNIX for Dummies Questions & Answers
Hai All,
Greetings....
I am doing a migration from Solaris to Linux .There are few scripts (logadm, nfsfind, gsscred_clean, kprop_script) for which I need a alternate in Linux.
If somebody can help.
Thanks in advance (1 Reply)
Discussion started by: Dilipkumarkm
1 Replies
10. Shell Programming and Scripting
Hi all,
Case 1:
./Myscript.sh param (on a first node)
Another node: (In parallel i run the same script)
./Myscript.sh param (on a second node)
Case2:
From my host, using ssh:
for i in $(seq $nb_lignes) (0 Replies)
Discussion started by: chercheur111
0 Replies
LEARN ABOUT REDHAT
audit_data
audit_data(4) File Formats audit_data(4)
NAME
audit_data - current information on audit daemon
SYNOPSIS
/etc/security/audit_data
DESCRIPTION
The audit_data file contains information about the audit daemon. The file contains the process ID of the audit daemon, and the pathname of
the current audit log file. The format of the file is:
pid>:<pathname>
Where pid is the process ID for the audit daemon, and pathname is the full pathname for the current audit log file.
EXAMPLES
Example 1: A sample audit_data file.
64:/etc/security/audit/server1/19930506081249.19930506230945.bongos
FILES
/etc/security/audit_data
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Obsolete |
+-----------------------------+-----------------------------+
SEE ALSO
audit(1M), auditd(1M), bsmconv(1M), audit(2), audit_control(4), audit.log(4)
NOTES
The functionality described on this manual page is internal to audit(1M) and might not be supported in a future release.
The auditd utility is the only supported mechanism to communicate with auditd(1M). The current audit log can be determined by examining the
configured audit directories. See audit_control(4).
The functionality described on this manual page is available only if the Basic Security Module (BSM) has been enabled. See bsmconv(1M) for
more information.
SunOS 5.10 14 Nov 2002 audit_data(4)