Operating System - HP-UX
1827318 Members
5017 Online
109961 Solutions
New Discussion

Getting backup Exec agent to run as a service in HP-UX 10.20

 
SOLVED
Go to solution
Jean P Bourget
New Member

Getting backup Exec agent to run as a service in HP-UX 10.20

I have 2 problems.
1.) I have the backup exec agent installed in /etc/bkupexec/agent.be
If I launch this as root by typing ./agent.be from the bkupexec directory, it runs as supposed to. But I can't logoff root. It says programs still running. Any way around this?
2.) How do I run a program (i.e. agent.be) as a service in HP-UX? I don't have NIS. It appears I should add an entry to the /etc/services file which in my case would be:
grfs 6101/tcp #Backup Exec Agent

How can I launch this once registered with out rebooting?
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: Getting backup Exec agent to run as a service in HP-UX 10.20

build however you launch it into a script in

/sbin/init.d

plan: assuming hpux-9 does this

cd /sbin/init.d
cp template backupagent

edit the backupagent, make sure there is a start and a stop seciton that mimics your manual steps.

cd /sbin/rc3.d
ln -s /sbin/init.d/backupagent S900backupagent

cd /sbin/rc2.d

ln -s /sbin/init.d/backupagent K100backupagent

Now it should start and stop at boot.

Caveats: I don't even remember if HP-UX 9 starts and stops programs this way.

I don't know if backupagent is supported on HP-UX 9.

HP no longer supports the OS. This combination may be untenable.

SEP

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pete Randall
Outstanding Contributor

Re: Getting backup Exec agent to run as a service in HP-UX 10.20

No, HP-UX 9.x does not follow the /sbin/init.d startup paradigm. If I recall correctly, you need to take a look at the /etc/rc script.


Pete

Pete
Jean P Bourget
New Member

Re: Getting backup Exec agent to run as a service in HP-UX 10.20

Update: This is HP-UX 10.2 (Sorry)

I looked at the /etc directory and the only rc dirs I have are rc.config.d. I am familiar with Red Hat and I've found that the rd.<#> runlevel paradigm either doesn't apply on 10.2 or there is only one runlevel.

That being said, while I'd love to automate this on boot, My more immediate goal is to get this running as root and being able to log out root and keep it running. Currently the system won't let me log out when I have agent.be running.

Can I throw it into a shell script such as:

run=`./agent.be`
echo $run

I think that would work in bash, I haven't done much with ksh.
melvyn burnard
Honored Contributor
Solution

Re: Getting backup Exec agent to run as a service in HP-UX 10.20

corrected thread title, and deleted duplicate thread
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Stephen Maynard
Advisor

Re: Getting backup Exec agent to run as a service in HP-UX 10.20

I think you just need to logon as root and type
/etc/bkupexec/agent.be &