Solaris 10 alternate ways of starting legacy scripts


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris 10 alternate ways of starting legacy scripts
# 1  
Old 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.
# 2  
Old 12-08-2015
Hi,

I would suggest that you should be starting the service using the "svcadm" utility, you should check the documentation here.

Regards

Gull04
# 3  
Old 12-08-2015
Quote:
Originally Posted by gull04
Hi,

I would suggest that you should be starting the service using the "svcadm" utility, you should check the documentation here.

Regards

Gull04
*I had to remove the URL from original post to comply with forum rules.

I should've been more clear. It's a legacy service hence using /etc/init.d/ instead of svcadm. I'm looking into converting it from a legacy service to something the SMF can manage. However since this is something I will be needing to repeat Occam's Razor does indeed apply.
# 4  
Old 12-08-2015
Can you tell more about the service, the generated logs, the audit configuration and the account you use to log in ?

If your system is configured to audit everything you launch, it is right for it to audit log a service launched manually.
# 5  
Old 12-09-2015
if you are stuck using /etc/init scripts, perhaps you need to investigate starting the service prior to starting auditd
# 6  
Old 12-09-2015
Quote:
Originally Posted by os2mac
if you are stuck using /etc/init scripts, perhaps you need to investigate starting the service prior to starting auditd
Or better yet, properly provisioning hardware to handle the audit output from the server apparently doing what it's supposed to do.
# 7  
Old 12-09-2015
Audit

Quote:
Originally Posted by achenle
Or better yet, properly provisioning hardware to handle the audit output from the server apparently doing what it's supposed to do.
I disagree. I've worked on systems where they were specifically configured to prevent usage if audit filled up. This was done to prevent work being done on the server without an audit trail. There is a security benefit to configure a server to shutdown if audit can't write logs.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Starting Scripts Using SSH

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

2. UNIX for Dummies Questions & Answers

Alternate of UNIX scripts in Linux

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

3. Shell Programming and Scripting

Alternate ways to use SQL query in Shell Script

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

4. Solaris

Legacy Ultra60 with Solaris 5.7 SCSI device reverse engineering

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

5. Shell Programming and Scripting

alternate to set -x in csh scripts

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

6. Solaris

Self ssl alternate in 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

7. Solaris

How to set up legacy services right on Solaris 10

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

8. Shell Programming and Scripting

Starting application using shell scripts

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

9. Linux

Possible ways to run shell scripts on Windows

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

10. IP Networking

Alternate to RARP Solaris 5.6 & 5.8

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
Login or Register to Ask a Question