General :: Make Shutdown Wait Until Service Is Stopped?
May 6, 2011
I have a third party application with a database.
I have created the service but it does not wait for the database to shutdown before the systems continues with the shutdown.
This results in the database being seen as crashed.
here is my stuff i did.
CACHE START AND STOP SCRIPT FOR REDHAT
#vi /home/cacheusr/cache_ctrl
Insert below
#!/bin/sh
#
# /etc/rc.d/init.d/cache_ctrl
# Cashier Control Script
#
# chkconfig: 2345 55 01
code....
View 9 Replies
ADVERTISEMENT
Jan 30, 2010
i've been searching all over the internet for a way to let the user press a particular key let's say 'y' without the user having to press [Enter] as confirmationfor yes, this would then run another function.
Quote:
Book Inventory Summary Report:-
Title, Author, Price
______________________________
StarWars EP1, G.Lucas, $49.59
Harry Potter, Rowling, $45.98
The Matrix, Mr. Smith, $53.98
Press 'y' to make a copy of this result into a file or 'n' to return to the main menu.. I understand the "press any key to continue" would go something like
Code:
read -sn 1 -p "Press any key to continue.." But i try many different ways of getting the "press a particular key" function, and none of them works.
View 5 Replies
View Related
May 5, 2010
I am running Fedora 11 with an Oracle 11g database installed. I came to check on it and found out that the oracle service had stopped. I also have a script that gets run by cron every minute. I noticed that the last entry in the log /var/log/cron was March 24 at 4:26. Which was really close (not exactly to the second but within a few minutes) of the last log entry in the database translator logs (the database was processing data and it outputs a log).
I rebooted the machine and cron started running again, but I can't get the oracle service to start again. Normally it runs at startup, but if I need to run it or check it, I use:
Code: /sbin/service oracle restart
Is there another log that I could look at to see what would be the cause of the stoppage? How to get the oracle service started again?
View 6 Replies
View Related
Sep 17, 2009
how to assign shutdown and reboot privileges to the user.please tell directory hierarchy privileges for /root,/bin./lib,/tmp,/var,/pro etc ...
And also i would like to give space quota to particular user and directory for users.
View 4 Replies
View Related
Apr 25, 2011
how do I make conky wait to start? I have read the post how to do it but when I try it says file not found.
View 9 Replies
View Related
Nov 26, 2009
I'm using bash script now,and I want have a script that can do like this: first ,tell me it will shut down ,and then shut down.My script looks like this:
#!/bin/sh
/usr/bin/curl $stop_page
shutdown -h now
[code]...
View 4 Replies
View Related
Mar 8, 2010
I just want to know one thing. I had stop the network service in ubuntu, still i can able to ping google.com.what u think might be things to consider. these are the outputs see.
root@jeetendra-desktop:~# /etc/init.d/networking stop
* Deconfiguring network
interfaces... [ OK ]
root@jeetendra-desktop:~# ping google.com
[Code]....
View 4 Replies
View Related
Mar 17, 2009
I have a script in /etc/init.d that starts when the machine boots up, but doesn't stop when the the machine shuts down.This simple script recreates the problem. It just logs when the 'testservice' is started and stopped. When the shutdown -h now command is run, it should be called with the 'stop' parameter shouldn't it?
# Att /etc/init.d/testservice
#!/bin/sh
#
[code]....
View 12 Replies
View Related
Aug 13, 2009
With this issue:
$ sudo shutdown -r now
sudo: shutdown: command not found
View 2 Replies
View Related
Dec 14, 2010
Trying to print from my laptop to friends wireless printer. I see his printer "7600 Series" in Network - File Browser. How do I print to his printer. I have text document. I click on "Print", but only "Print to file comes up".
I did System -> Printing -> Help -> Troubleshoot
Got: CUPS Service Stopped
The CUPS printer spooler does not appear to be running. To correct this choose
system -> Administration -> Services
There is not "Services there"
What to do? Ubuntu 10.04 LTS
View 9 Replies
View Related
Dec 1, 2008
i just wanna know if there is some script out there for shutting down a certain service if the load exceeds a specified value?
I've a system with a DBI-Proxy running, most of the time the systems load is about 2~3...if a DB-connection dies, the load rapidly increases (very fast) and after some seconds the load is > 200 and i'm no longer able to shut down the DBI-Proxy manually...or do anything else via ssh...
Now i wanna have a script running in background that checks the system-load permanently and stops the DBI-Proxy if the load exceeds...well, lets say 10 or whatever.
View 1 Replies
View Related
Aug 3, 2009
Someone at work has requested if i can find out anything on the above.Been googling around as well as i have only been using Linux for 2 months now.
basically there is a SYBASE ASE installation on the server, which a tomcat based website references.They want the service to stop once a certain row limit is reached in the table.
I know i have to do a count statement on the sybase table from ISQL.But how can i create the action "service website stop" once the count value reaches 4000 ?
View 2 Replies
View Related
May 23, 2010
When I run large rsync sessions (backup purposes), I often find that the cpu goes up to 100% on both cores, and the systems gets almost unusable as slow it is. Top reveals around 80% is reported as "wa", which is IO Wait right?
Well, using the CPUfreq applet, it is possible (but irritatingly sloow) to manually set the cpu frequency to the highest possible. After this the computer gets much more snappy. How can this be done without manual intervention, anyone knows?
View 1 Replies
View Related
Jun 29, 2010
I have little problem with gpk servce pack (from gpk-package-extra package). When im trying to make list of my packages in system i have:
Quote:
Can't write the file, no permissions. OK, but when i run gpk service package as root, program freeze, i click create packages list option but application never create this file, status is always on 0%, even after 1 hour. I saw video tutorial, where base are created by normal user i /home - why i can't Console says nothing about this.
View 2 Replies
View Related
Dec 25, 2009
will the command service httpd restart the apache service if i enable httpsd service in graphical mode
View 12 Replies
View Related
Nov 9, 2010
How can I make Jboss 5.1 as a service? Whereby, I don't have to run it from ssh/command line to have it started.
View 14 Replies
View Related
Apr 14, 2011
I'm running a scripts that launches remotely another script with ssh.re's the script:main.sh
Code:
ssh user@remote "~/script1.sh"
ssh user@remote "~/script2.sh"
Here's the remote script:
View 9 Replies
View Related
Jun 5, 2011
I have recently installed Lubuntu 11.04 on an old system. the problem is that it hangs at startup when tries to "Starting Bluetooth". I have searched through this forum and the web and it seems that the problem has something to do with my TV Card. But I can't remove the card because it is a part of my Graphic Card which is an "ATI Radeon 8500DV All In Wonder". I can start the machine with Lubuntu Live CD, and so I thought that maybe I can change a value in a file from installed Lubuntu through Live session that makes the Bluetooth Service disabled at startup.
View 3 Replies
View Related
Jun 15, 2011
I've installed MongoDB and I want init to start the database with the --journal flag. I'm quite rusty on how init works, but I know it involves the /etc/init and /etc/rc directories.I've found /lib/init/upstart-job and someone in the chat is suggesting that I just edit that bash script, but I can see it's involved with more than half the system service, so I'm a little hesitant to edit it. In fact, I'm pretty sure if I followed that advice I'd really screw up my system and then the person "helping" me would just stop responding.
View 1 Replies
View Related
Apr 22, 2010
I cannot locate shutdown log for Linux shutdown to check various activities carried out during shutdown. I can view Startup Log which is availble on console>Applications>System Tools>System Logs.
I have included Shutdown/Startup in dbora, so that Oracle 10gR2 Shutdown/Startup will be automated during OS Shutdown/Startup.
I want to check Shutdown log because Oracle Shutdown was not running, as from $ORACLE_HOME/shutdown.log contains no entries, where as startup log contains latest startup details.
That means here 2 issues are there. One, I want to locate OS Shutdown Log and the other being Why Oracle Shutdown not getting executed.
View 2 Replies
View Related
Jul 5, 2011
I was wondering if there was a way to create a script that would kill a process (the Folding @ Home one in particular), then shut down my pc. And I was wondering if there was a way to create another script that would set it to a timer, kind of like the shutdown -h command
View 5 Replies
View Related
Jan 20, 2010
Does anyone know how to make an anonymous email service like Dodgeit,com? Basically where users can go thru a web login to check any mailbox name they want at yourdomain.com.
I know you can do it thru Postfix, what other setup is needed? Any easy way of going about this?
View 4 Replies
View Related
Mar 7, 2011
Short story: I have a problem with one of my services (mediatomb) - it requires an md RAID array to be mounted in order to start, because it uses files from it. $remote_fs is added by default to the "Required-Start" line of the init script, so I thought that this should be enough. However, the mediatomb service fails to start on boot, but starts just fine when I execute "service mediatomb start" later. The array is entered in /etc/fstab and is automatically mounted on boot.
Long story...
This is my file server (Ubuntu Server 10.10), which has a raid array created with mdadm (mounted on /z), and the root filesystem is located on an USB thumb drive. I've installed mediatomb, but I wanted to put its database files on the raid array instead of the root fs, so I've symlinked /var/lib/mediatomb (the default path) to /z/mediatomb on the array. This is because the mediatomb DB is supposed to be updated fairly often, so I didn't want it to stay on the flash drive.
Problem is, the mediatomb service can't start on boot - in /var/log/mediatomb.log, it says "2011-03-07 19:22:47 ERROR: /var/lib/mediatomb : 20 x No such file or directory". As I said, it works fine when manually started later...
This is the fstab entry for the raid array code...
View 1 Replies
View Related
Oct 17, 2010
I work as a part-time consultant developing webpages, both back end and front end.When developing a back end application I'm using a server running ubuntu server edition to host the application while I'm developing it.The problem comes when I want to upload my changes to the server, now I'm using Dropbox both on the client and the server, the problem is that sometimes I have to wait over a minute for the changes to be downloaded (when I'm working out-of-home that is) so I'm looking for a better alternative. My options seems to be:Some open source version of dropbox which syncs directly to my server (haven't found anyting that sounds viable though)
Mount my server via some protocol (NFS, SSHFS etc)
Push changes manually via FTP, git, svn or something else
I'd like the sync to be as transparent as possible, meaning I'd like to do as little manual work as possible.The client I'd like to connect runs either OSX or Ubuntu.The ultimate solution would be to use NFS + VPN though that would be alot of work to set up and also I don't like the security in NFS (matching UID's doesn't seem very secure to me)
View 3 Replies
View Related
May 16, 2010
Grub loading wait error 21 - system this way for hours
View 4 Replies
View Related
Aug 6, 2010
We may edit some values for GRUB from /etc/default/grub to modify the way that computers boot up and shutdown.My question is how to make such modifications for boot and shutdown. For example, suppose I want to display two splashes one during booting and the other during shutdown or I would like to acpi=off during booting and then acpi=force during shutdown.
View 1 Replies
View Related
Feb 10, 2010
How do I make a server wait on shutdown for a set amount of time?I tried making a service that just does Code: sleep 7m and made it first priority on shutdown but it seems to ignore itI'm pretty sure it runs... I'm currently testing that to make sure
View 4 Replies
View Related
Sep 6, 2010
how to make a script that will check service/s status whether running or stop and also will run stop services?
View 9 Replies
View Related
Jun 13, 2010
I was trying to make shutdown without root user using visudoI tried the following still it did not work for mehawk ALL=NOPASSWD:/sbin/shutdown -h now
View 6 Replies
View Related
Jul 4, 2010
I am on opensuse 11.2 and sometimes when I shutdown the computer, It make a noise like "bzzz" but different than error beep. I think maybe there is a problem withe the automatic detection at the boot, but I really don't know alsa configuration or udev rules very well.
Code:
$ cat /proc/asound/cards
0 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0xfc400000 irq 22
1 [HDMI ]: HDA-Intel - HDA ATI HDMI
HDA ATI HDMI at 0xcfeec000 irq 17
Code:
$ lspci | grep -i audio
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
01:00.1 Audio device: ATI Technologies Inc RV710/730
View 7 Replies
View Related