CPUG

The Check Point User Group

A Resource For The Check Point Community.  Fast.  Useful.  Independent.

1. Come to CPUG CON 2008 EUROPE in Switzerland on September 8th - 9th!
    Two days full of technical content for Check Point administrators in the beautiful Swiss Alps!
    We already have 52 attendees signed up from 14 countries!
2. CCSA/CCSE One-Week Dual-Certification Training Course with CPUG in San Francisco!
    Courses Starting 8/25, 10/6, 11/3, 12/8, (2009) 1/19, 2/9, 3/9, 4/6, 5/4, 6/8, 7/6, 8/3, 9/7.
3. Corrent S3500 SecureXL Turbocards For Sale - Last Six Remaining - Get Your Spares!
4. Join Us On LinkedIn - We now have a CPUG group.


Go Back   CPUG: The Check Point User Group > Check Point Firewall-1/VPN-1 Platforms > Sun Solaris
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2006-08-25
RobertGraham RobertGraham is offline
Senior Member
 
Join Date: 2006-02-02
Posts: 204
Rep Power: 3
RobertGraham has an average reputation (10+)
Send a message via MSN to RobertGraham Send a message via Yahoo to RobertGraham
Default Solaris 9 mdsstart attaches to terminal

We have all the patches on SunOS 5.9 and Provider-1 installs fine. If it starts on boot everything is hunky-dory. However, if we need to stop and start the mds with mdsstart/mdsstop, the processes attach to the terminal pts/N or console.

The end result is that when the user logs out of the machine, the process gets killed. Normally, services should start with a '?' in the place of the terminal. In this case, it doesn't. We checked the scripts and environment variables - everything looks ok.

Are we doing something wrong or how can we fix this?
Reply With Quote
  #2 (permalink)  
Old 2006-08-27
RobertGraham RobertGraham is offline
Senior Member
 
Join Date: 2006-02-02
Posts: 204
Rep Power: 3
RobertGraham has an average reputation (10+)
Send a message via MSN to RobertGraham Send a message via Yahoo to RobertGraham
Default Re: Solaris 9 mdsstart attaches to terminal

Opps forgot to add that it's R61.
Reply With Quote
  #3 (permalink)  
Old 2006-08-27
chillyjim chillyjim is offline
Senior Member
 
Join Date: 2005-08-29
Location: Upstate NY
Posts: 1,627
Rep Power: 5
chillyjim has an average reputation (10+)
Send a message via AIM to chillyjim Send a message via Skype™ to chillyjim
Default Re: Solaris 9 mdsstart attaches to terminal

nohup mdsstart &
Reply With Quote
  #4 (permalink)  
Old 2006-08-28
RobertGraham RobertGraham is offline
Senior Member
 
Join Date: 2006-02-02
Posts: 204
Rep Power: 3
RobertGraham has an average reputation (10+)
Send a message via MSN to RobertGraham Send a message via Yahoo to RobertGraham
Default Re: Solaris 9 mdsstart attaches to terminal

Jim:

Thanks for the very useful work-around.

In the meantime, I also found the "answer." CheckPoint is very csh based. So I did was the following:

edit .profile to check for the file /usr/bin/csh; then set shell to csh
and changed the line:
. /opt/CPshrd-R61/tmp/.CPprofile.sh to

. /opt/CPshrd-R61/tmp/.CPprofile.csh

once this .profile was sourced, it worked fine. I'm able to start the mds and logout without problem.
Reply With Quote
  #5 (permalink)  
Old 2006-08-28
RobertGraham RobertGraham is offline
Senior Member
 
Join Date: 2006-02-02
Posts: 204
Rep Power: 3
RobertGraham has an average reputation (10+)
Send a message via MSN to RobertGraham Send a message via Yahoo to RobertGraham
Default Re: Solaris 9 mdsstart attaches to terminal

UPDATE

Instead of changing the shell to csh, you can just create the file

.cshrc


in which include at the very least:

# Running Check Point environment script
source /opt/CPshrd-R61/tmp/.CPprofile.csh

If I figure out why the sh script doesn't work, I'll post it here.
Reply With Quote
  #6 (permalink)  
Old 2006-08-29
RobertGraham RobertGraham is offline
Senior Member
 
Join Date: 2006-02-02
Posts: 204
Rep Power: 3
RobertGraham has an average reputation (10+)
Send a message via MSN to RobertGraham Send a message via Yahoo to RobertGraham
Default Re: Solaris 9 mdsstart attaches to terminal

Problem found!

When you use the bash so much, you forget what you didn't have with the Bourne shell. Anyway, the problem is that you can't run mdsstart from the Bourne shell and logout, because it doesn't have the ability to disown the process.

This at first didn't make sense, but if you source the same CheckPoint script listed above with .sh on the end, and run it from a bash shell everything is fine.
Reply With Quote
  #7 (permalink)  
Old 2007-01-23
WinchesterVA WinchesterVA is offline
Junior Member
 
Join Date: 2006-12-21
Posts: 17
Rep Power: 0
WinchesterVA has an average reputation (10+)
Default Re: Solaris 9 mdsstart attaches to terminal

Solution ID: sk32146
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 04:24.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0