Sponsored Content
Operating Systems Solaris Stop/start script problem on Solaris-10 Post 302868105 by solaris_1977 on Friday 25th of October 2013 10:58:06 PM
Old 10-25-2013
Stop/start script problem on Solaris-10

I have Big brother script, which start/stop Big Brother processes. Something got change on server and now I am not able to start/stop it. There is no change in script, as I compared it from other server. This service is being managed by bb user (group is also bb).
Code:
root@tsazdq04:/# /etc/init.d/bbmon restart
/etc/profile[47]: /dev/null: cannot create
/usr/local/bb/runbb.sh: /dev/null: cannot create
root@tsazdq04:/# ls -l /etc/profile /dev/null /usr/local/bb/runbb.sh
-rw-r--r--   1 root     root         188 Oct 25 19:50 /dev/null
-rw-r--r--   1 root     other        741 Feb 12  2012 /etc/profile
-rwxr-xr-x   1 bb       bb          7870 Aug  1  2002 /usr/local/bb/runbb.sh
root@tsazdq04:/#
root@tsazdq04:/# cat /etc/passwd | grep -i bb
bb:x:1984:1984:Big Brother:/usr/local/bb:/bin/ksh
root@tsazdq04:/# ls -ld /usr/local/bb
drwxrwxrwx   6 bb       bb            20 Jul 15  2009 /usr/local/bb
root@tsazdq04:/# ls -l /usr/local/bb
total 17003
-rw-r--r--   1 bb       bb       8545902 Oct 25 17:23 BBOUT
drwxrwx---   2 bb       bb            30 Nov 21  2002 bin
drwxr-xr-x   2 bb       bb            43 Jul 22 20:54 etc
drwxr-x---   6 bb       bb            24 May  1 14:58 ext
-rw-r-----   1 bb       bb          2362 Jan 30  2001 LICENSE
-rw-r-----   1 bb       bb         14743 Sep 12  2001 README
-rw-r-----   1 bb       bb          9934 Sep 12  2001 README.INSTALL
-rwxr-xr-x   1 bb       bb          7870 Aug  1  2002 runbb.sh
drwxr-x---   2 bb       bb             7 Oct 25 17:23 tmp
root@tsazdq04:/#

Any idea where where should I dig to fix it ?
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Start/Stop Script

I'm a newbie to the Unix world Help! I have to maintain a host of Sybase database servers sitting on Unix Sun Solaris 8...I've been tasked with finding/creating a way to auto start/stop Unix via unix commands, specifically when the Unix servers need to be restarted we want Sybase to start... (2 Replies)
Discussion started by: jjv1
2 Replies

2. Solaris

Help: how to start/stop FTP server in solaris?

As the title. Thanks (1 Reply)
Discussion started by: eddsos
1 Replies

3. UNIX for Dummies Questions & Answers

how to start and stop the network in Solaris 9??

Hi how do I start or stop the network interfaces in Solaris 9 I have tried "/etc/init.d/network stop" but it doesn't work thanks (1 Reply)
Discussion started by: eldiego
1 Replies

4. Solaris

Auto Start/Stop Didnt Work in Solaris 10

Hi...all database - 10g Rs 2 with ASM platform - Sun Solaris V890 64bit This is the step i use to auto start the database n ASM: (auto start can start but need to kill lsvcrun first) 1 dbora---script 2 start_shutdown_asm.ksh---script 3. Dbora file must be put under /etc/init.d directory... (0 Replies)
Discussion started by: adzuanamir
0 Replies

5. Red Hat

Problem with Stop Script during shutdown of o/s

Friends , I create two script for oracle database startup and shutdown . $ cat start.sh ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1 ORACLE_OWNER=oracle su - oracle << ! sqlplus / as sysdba << ! startup $ cat stop.sh ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1... (1 Reply)
Discussion started by: shipon_97
1 Replies

6. UNIX for Dummies Questions & Answers

Need help making a start/stop script...

i have two separate scripts that work nicely to curl and generate two files.. one html and one txt so a total of four. When the script starts up i want it to: call and run shellscripta call and run shellscriptb sleep for about 40 seconds again run shellscripta again run shellscriptb check... (4 Replies)
Discussion started by: phpfreak
4 Replies

7. Shell Programming and Scripting

Help with stop/start Shell Script.

Hi All, I would like to develop a shell script for stop & start an application server (1-4) on Solaris box. Here are the user requirements for this task. 1. User will input the option which server they wish to stop. 2. Will clear cache files from specific location. 3. ... (1 Reply)
Discussion started by: venga
1 Replies

8. Shell Programming and Scripting

Shell Script for Websphere MQ Queue Manager start/stop

Hello All, I am completely new to shell scripting. I had to write a script that starts and stop the queue manager in Websphere MQ. We are on Linux 64-bit patform. The script should stop the queue manager and all the processes related to websphere MQ. It should be a clean stop. Once the queue... (3 Replies)
Discussion started by: pady1224
3 Replies

9. Shell Programming and Scripting

Shell script to stop and start server

Hi, I need to create a shell script for automated server patching, with the following scenario: I have two Linux servers Primary and secondary. Server patching should start on Primary 1st and then secondary. 1st check both servers are up and running. Then stop primary and patching will... (1 Reply)
Discussion started by: rcroyal88
1 Replies
GZEXE(1)						      General Commands Manual							  GZEXE(1)

NAME
gzexe - compress executable files in place SYNOPSIS
gzexe name ... DESCRIPTION
The gzexe utility allows you to compress executables in place and have them automatically uncompress and execute when you run them (at a penalty in performance). For example if you execute ``gzexe /usr/bin/gdb'' it will create the following two files: -rwxr-xr-x 1 root root 1026675 Jun 7 13:53 /usr/bin/gdb -rwxr-xr-x 1 root root 2304524 May 30 13:02 /usr/bin/gdb~ /usr/bin/gdb~ is the original file and /usr/bin/gdb is the self-uncompressing executable file. You can remove /usr/bin/gdb~ once you are sure that /usr/bin/gdb works properly. This utility is most useful on systems with very small disks. OPTIONS
-d Decompress the given executables instead of compressing them. SEE ALSO
gzip(1), znew(1), zmore(1), zcmp(1), zforce(1) CAVEATS
The compressed executable is a shell script. This may create some security holes. In particular, the compressed executable relies on the PATH environment variable to find gzip and some standard utilities (basename, chmod, ln, mkdir, mktemp, rm, sleep, and tail). BUGS
gzexe attempts to retain the original file attributes on the compressed executable, but you may have to fix them manually in some cases, using chmod or chown. GZEXE(1)
All times are GMT -4. The time now is 08:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy