- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Script to stop Apps
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2007 02:07 AM
11-16-2007 02:07 AM
Script to stop Apps
Here i would like to add below mention two commands in a .sh script so that i can run the same from my backup
From root prompt i am using below mention commands
#cd /sbin/rc3.d
#./S910ixos stop
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2007 02:19 AM
11-16-2007 02:19 AM
Re: Script to stop Apps
yes you can put that in a script to stop that app before backup. Or
/sbin/rc3.d/S910ixos stop (one-liner) Note that you're running the "Start" link. It'll work, just a matter of style.
or
/sbin/rc2.d/K090ixos stop (or similar) should be in the rc2.d directory. Thats the "Kill" link. as noted above.
or I prefer running the script the links above point to. do an "ls -l /sbin/rc2.d/S910ixos" and see what the link points to and run that directly. something like "/sbin/init.d/ixos stop"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2007 02:38 AM
11-16-2007 02:38 AM
Re: Script to stop Apps
I have include oneline command in .sh script but it is not working.
Any further help or i am doing something wrong ?
# ls -ltr
total 2
-rwxrwxrwx 1 root sys 25 Nov 16 21:06 stopixos.sh
# more stopixos.sh
sbin/rc3.d/S910ixos stop
# stopixos.sh
sh: stopixos.sh: not found.
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2007 02:42 AM
11-16-2007 02:42 AM
Re: Script to stop Apps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2007 02:48 AM
11-16-2007 02:48 AM
Re: Script to stop Apps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2007 02:52 AM
11-16-2007 02:52 AM
Re: Script to stop Apps
uid=0(root) gid=3(sys) groups=0(root),1(other),2(bin),4(adm),5(daemon),6(mail),7(lp),20(users)
# ls -ltr
total 2
-rwxrwxrwx 1 root sys 25 Nov 16 21:06 stopixos.sh
# ./stopixos.sh
./stopixos.sh: sbin/rc3.d/S910ixos: not found.
# more stopixos.sh
sbin/rc3.d/S910ixos stop
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2007 02:58 AM
11-16-2007 02:58 AM
Re: Script to stop Apps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2007 03:06 AM
11-16-2007 03:06 AM
Re: Script to stop Apps
> sbin/rc3.d/S910ixos stop
You are missing the initial '/' in the absolute path. The command should read:
/sbin/rc3.d/S910ixos stop
However, you should be calling the script S910ixos is symlinked to. Most likely:
/sbin/init.d/ixos stop
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2007 03:07 AM
11-16-2007 03:07 AM
Re: Script to stop Apps
can *YOU* find "sbin/rc3.d/S910ixos"?
do you know why you can (or can't) find that file?
another little hint....relative or absolute path?
these are things that make systems go *boom*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2007 03:39 AM
11-16-2007 03:39 AM
Re: Script to stop Apps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2007 04:24 AM
11-16-2007 04:24 AM
Re: Script to stop Apps
Actually, you were given the correct and complete answer at least once.
the issue lies in the difference between
/sbin
and
sbin
as noted above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2007 02:14 PM
11-18-2007 02:14 PM
Re: Script to stop Apps
#cd /sbin/rc3.d
#./S910ixos stop
You should use an absolute path, not two commands. Otherwise the cd may cause junk to accumulate in that directory.
Your script should also start with an interpreter and if you don't know if all file systems are mounted, use:
#!/sbin/sh