Fedora Linux Support Community & Resources Center
Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > Fedora Support > Servers

Servers The place to discuss any Fedora server problems you may have.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2009-11-02, 09:50 PM CST
michael12345 Offline
Registered User
 
Join Date: Nov 2008
Posts: 154
linuxubuntufirefox
/sbin/service increase wait time before fail?

I have a start and stop script registered with chkconfig for a fuse mounted drive. I can /sbin/service scriptname start
and
/sbin/service scriptname stop
with no issues.

The stop script unmounts the drives and then stops the service with a function to wait until the pidof service is gone.

My drives are showing up as dirty on reboot, which should mean that my script that functions normally in cli, is running out of time and possible being ignored by service after a certain wait period when shutdown -h now is issued.

Sytem is a remote server so I can not view the output during shutdown.

How can I increase the wait before /sbin/service issues a [FAILED] if that is the case on shutdown?

update: the startup script runs , however the shutdown script does not...the script does work though with the service scriptname stop command

Last edited by michael12345; 2009-11-02 at 10:38 PM CST.
Reply With Quote
  #2  
Old 2009-11-02, 11:53 PM CST
michael12345 Offline
Registered User
 
Join Date: Nov 2008
Posts: 154
linuxubuntufirefox
Solved, started my script by copying anacron which was a mistake, it manages itself. I needed to touch the script in /var/lock/subsys and remove it when stopping.
Reply With Quote
  #3  
Old 2009-11-04, 06:32 PM CST
diamond_ramsey's Avatar
diamond_ramsey Offline
Registered User
 
Join Date: Aug 2009
Posts: 164
linuxfedorafirefox
:) michael12345, thank you for your posts. :)

michael12345, thank you for your posts.

Quote:
Originally Posted by michael12345 View Post
Solved, started my script by copying anacron which was a mistake, it manages itself. I needed to touch the script in /var/lock/subsys and remove it when stopping.
Most excellent!!!
__________________
=
Three dual core systems with 3.0 GB running the Fedora 12 (Constantine) kernel - vmlinuz-2.6.31.5-127.fc12.i686.PAE
One dual core system with 3.0 GB running the Fedora 13 kernel - 2.6.32-0.51.rc7.git2.fc13.i686.PAE
Eight (8) x86_64 computing cores, 16 GB of RAM and two SATA Seagate 7200.12 500 GB harddisks.
=
Reply With Quote
  #4  
Old 2009-11-04, 06:38 PM CST
scottro's Avatar
scottro Online
Community Manager -- Banned by popular request.
 
Join Date: Sep 2007
Location: NYC
Posts: 7,577
linuxopera
Thanks for coming back and posting the solution. Just for the newcomers, would you mind going into a bit more detail? (It might save some of them from making similar errors.)

If you don't have time to do so, of course, that's fine too.
__________________
--
http://home.roadrunner.com/~computertaijutsu

Do NOT PM CM's (or any other forum member) with requests for technical support. Ask your questions on the forum.


"I don't know why there is the constant push to break any semblance of compatibility" --anon
Reply With Quote
  #5  
Old 2009-11-04, 06:47 PM CST
michael12345 Offline
Registered User
 
Join Date: Nov 2008
Posts: 154
linuxubuntufirefox
Quote:
Originally Posted by scottro View Post
Thanks for coming back and posting the solution. Just for the newcomers, would you mind going into a bit more detail? (It might save some of them from making similar errors.)

If you don't have time to do so, of course, that's fine too.

I needed a script to start and stop a daemon on startup. Normally I just gank a script from elsewhere that does something similar and go from there. Doing so should normally be fine with /etc/init.d/xxxx

However anacron the script i started with manages itself so it caused some errors.

specifically the script I had, needed to have

touch $LOCKFILE in the start portion and
rm $LOCKFILE in the stop portion

LOCKFILE is defined as
LOCKFILE=/var/lock/susbsys/$prog

also, when you make changes to your script in /etc/init.d you need to or at least I needed to chkconfig --del script name;
change script
chkconfig --add script name; to update the symlinked files in /etc/rc*/rc*
Reply With Quote
  #6  
Old 2009-11-04, 07:18 PM CST
scottro's Avatar
scottro Online
Community Manager -- Banned by popular request.
 
Join Date: Sep 2007
Location: NYC
Posts: 7,577
linuxopera
Thanks much. Actually, I put my scripts in /etc/rc.d/local, so I didn't know that about chkconfig and having to delete. Thanks.
__________________
--
http://home.roadrunner.com/~computertaijutsu

Do NOT PM CM's (or any other forum member) with requests for technical support. Ask your questions on the forum.


"I don't know why there is the constant push to break any semblance of compatibility" --anon
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make a given proccess wait for its child (wait() and waitpid don't work) A_n_H Programming 9 2009-05-02 09:58 PM CDT
How to increase processing time in PHP and Apache N K Samal Servers 1 2008-12-29 07:36 AM CST
/sbin/multipath.static error about libsysfs.so.2 at boot time tobias001 General Support 8 2008-07-04 09:22 PM CDT
Increase xinetd service priority sur-se Servers 2 2007-11-21 05:17 AM CST
oddities in /sbin/service Robert P. J. Day gmane.linux.redhat.fedora.general 8 2006-11-20 07:40 AM CST

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 09:00 AM CST.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
Hosting provided by ThePlanet



All trademarks, and forum posts in this site are property of their respective owner(s).

FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
vB Enterprise Translator (vBET) made by NLP-er