Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

savepnpc stops process but won't restart it

Status
Not open for further replies.

ttroxell

Technical User
Nov 21, 2002
24
US
Hi,

I have a process to stop a database before the backup, and restart it after the backup completes.

The process stops the database, but can't restart it after the backup runs. The message reported is:

# more savepnpc.log
09/16/03 23:15:05 preclntsave: All command(s) ran successfully.
09/16/03 23:15:05 preclntsave: The tmp file for the group exists. Another savepnpc may be running. Else, please remove the <group>.tmp file.
09/16/03 23:15:05 preclntsave: The tmp file for the group exists. Another savepnpc may be running. Else, please remove the <group>.tmp file.
09/16/03 23:15:06 preclntsave: The tmp file for the group exists. Another savepnpc may be running. Else, please remove the <group>.tmp file.
09/16/03 23:15:06 preclntsave: The tmp file for the group exists. Another savepnpc may be running. Else, please remove the <group>.tmp file.
09/17/03 01:52:07 pstclntsave: All savesets on the worklist are done.
09/17/03 01:52:08 pstclntsave: Not all command(s) ran successfully.
09/17/03 01:52:08 pstclntsave: Exited.

This is my savepnpc script.

more MEDIABANK.res
type: savepnpc;
precmd: &quot;/apps/mediabank/iskill&quot;;
pstcmd: &quot;/apps/mediabank/isstart&quot;, &quot;/bin/sleep 5&quot;;
timeout: &quot;12:00:00&quot;;
abort precmd with group: No;

Thanks,
 
What happens if you run /apps/mediabank/iistart from terminal console on your client? Do you get an error?
 
No errors. The command starts the database.
 
Change your MEDIABANK.res file to this:

type: savepnpc;
precmd: &quot;/apps/mediabank/iskill&quot;;
pstcmd: &quot;/apps/mediabank/isstart >isstart.out 2>&1&quot;, &quot;/bin/sleep 5&quot;;
timeout: &quot;12:00:00&quot;;
abort precmd with group: No;

and run the backup again. Post the isstart.out file so I can see why its failing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top