Operating System - HP-UX
1753316 Members
5002 Online
108792 Solutions
New Discussion юеВ

Re: services to be configured to come up as normal startup process

 
SOLVED
Go to solution
panks
Regular Advisor

services to be configured to come up as normal startup process

Hi,

I want to configure samba and control-m to be come up as normal startup process in hpux. Which file I need to modify or what need to be change to achieve the same.
10 REPLIES 10
Jeff_Traigle
Honored Contributor

Re: services to be configured to come up as normal startup process

Assuming you used the HP CIFS bundle, there are variables, RUN_SAMBA and RUN_WINBIND, in /etc/rc.config.d/samba that control whether or not it starts.
--
Jeff Traigle
panks
Regular Advisor

Re: services to be configured to come up as normal startup process

Hi,

I want to know how we can configure any services to come up as normal startup process when system boots. I know in aix we can do that by adding the service entry in /etc/inittab file. How we can do that in HPUX.
Please suggest. I am not looking for any specific service, I am asking in general.
Thanks
Tim Nelson
Honored Contributor

Re: services to be configured to come up as normal startup process

Two places.

/etc/inetd.conf for those services controlled by inetd

/etc/rc.config.d/* for all the rest.



panks
Regular Advisor

Re: services to be configured to come up as normal startup process

Thanks for the response. Can you tell in more details. Here is my requirement.

1. /home/ctmagent/ctm/scripts/rc.agent_user

I want to run this script at startup so that it will start control-m agent.

and
2. /opt/samba/bin/startsmb
This will start samba at startup.

Please let me know, how can achieve these 2 scripts to run at system startup so that the above services should be running even after reboot.

Thanks
Dennis Handly
Acclaimed Contributor

Re: services to be configured to come up as normal startup process

>I want to run this script at startup so that it will start control-m agent.

Do these products have scripts and documentation that tells you how to either configure them with inittab(4) or rc(1m)?
panks
Regular Advisor

Re: services to be configured to come up as normal startup process

ok I will check for control-m but what about samba. How can I make samba to start automatically with system startup after reboot.
Dennis Handly
Acclaimed Contributor

Re: services to be configured to come up as normal startup process

>How can I make samba to start automatically with system startup after reboot?

The same way. If samba is supported on HP-UX, there should already be a /etc/rc.config.d/ file for it. Just edit the config file to enable it.
panks
Regular Advisor

Re: services to be configured to come up as normal startup process

Yeah samba file was there in /etc/rc.config.d
I edited file and changed parameter as below:
RUN_SAMBA=1

Did I made correct entry?pls let me know, I am new to hpux.
Thanks
Dennis Handly
Acclaimed Contributor
Solution

Re: services to be configured to come up as normal startup process

>Did I made correct entry?

I would hope the file had enough comments to tell you what to add.

Is samba working now? Otherwise, have you found a file in /sbin/init.d/ to start samba?