Fedora Linux Support Community & Resources Center
  #1  
Old 4th June 2010, 05:40 AM
cprogrammer Offline
Registered User
 
Join Date: Mar 2010
Location: Chennai, India
Posts: 5
macosfirefox
Unhappy upgrade to FC13 /etc/event.d to /etc/init - job not getting started

I was having a job in /etc/event.d. It was working fine upto FC12. With upgrade to Fedora 13, it stopped working . Searching the internet, It looks like /etc/event.d is obsolete and I need to use /etc/init. Also the filename has to have a '.conf' extension. So I have renamed my job as /etc/init/svscan.conf.

However, it fails to start automatically on reboot . It works if I manually issue the command

% sudo /sbin/initctl emit qmailstart

But fails to start automatically on reboot. Is there anything wrong in my script below ? Let me know if I have missed out anything?

% cat /etc/init/svscan.conf

# svscan - runlevel compatibility
# WARNING: This file was auto-generated. Do not edit!
# $Log: upstart.sh,v $
# Revision 1.3 2008-09-08 15:24:34+05:30 Cprogrammer
# use the shorter notation for denoting multiple run levels
# Start deamontools watcher
# console output, owner, none
# to start - initctl emit qmailstart
# to stop - initctl emit qmailstop
# start svscan
# stop svscan
# $Id: upstart.sh,v 1.3 2008-09-08 15:24:34+05:30 Cprogrammer Stab mbhangui $

start on runlevel [345]
start on qmailstart

stop on runlevel [0126]
stop on runlevel r
stop on qmailstop

console none
respawn
script
exec /var/indimail/bin/svscanboot /service /service1
end script
Reply With Quote
  #2  
Old 4th June 2010, 06:23 AM
David Batson Offline
Registered User
 
Join Date: Jul 2009
Posts: 1,234
linuxopera
Re: upgrade to FC13 /etc/event.d to /etc/init - job not getting started

I ran into a similar problem. I put the file in /etc/gdm/PostLogin/Default and that works.

EDIT: I put the contents of the file I wanted to run in 'Default'.
__________________
Fedora 19 Gnome on a ThinkPad X220, i5-2540M CPU, Intel HD Graphics 3000, Intel N 6205 wireless, and Sierra Wireless 754S Mobile Hotspot (AT&T)

Last edited by David Batson; 4th June 2010 at 06:31 AM.
Reply With Quote
  #3  
Old 4th June 2010, 08:31 AM
cprogrammer Offline
Registered User
 
Join Date: Mar 2010
Location: Chennai, India
Posts: 5
linuxfedorafirefox
Re: upgrade to FC13 /etc/event.d to /etc/init - job not getting started

Quote:
Originally Posted by David Batson View Post
I ran into a similar problem. I put the file in /etc/gdm/PostLogin/Default and that works.
This will not work for me as I do not use gdm on my server.
Reply With Quote
  #4  
Old 4th June 2010, 02:58 PM
David Batson Offline
Registered User
 
Join Date: Jul 2009
Posts: 1,234
linuxopera
Re: upgrade to FC13 /etc/event.d to /etc/init - job not getting started

If you use KDE, you can try /home/~/.kde4/Autostart/
__________________
Fedora 19 Gnome on a ThinkPad X220, i5-2540M CPU, Intel HD Graphics 3000, Intel N 6205 wireless, and Sierra Wireless 754S Mobile Hotspot (AT&T)
Reply With Quote
  #5  
Old 4th June 2010, 03:38 PM
cprogrammer Offline
Registered User
 
Join Date: Mar 2010
Location: Chennai, India
Posts: 5
linuxfedorafirefox
Re: upgrade to FC13 /etc/event.d to /etc/init - job not getting started

Quote:
Originally Posted by David Batson View Post
If you use KDE, you can try /home/~/.kde4/Autostart/
On my production server, we don't usually have users to log in. What I am attempting is to start a messaging server after reboot. The messaging service should start unattended. The funny thing is that the same script works upto FC12 in /etc/event.d

At the moment, I have put a line in /etc/rc.local
/sbin/initctl emit qmailstart

Though it is working for me at the moment, I am still looking for answer on what is wrong with my above upstart script?

The other strange thing is /sbin/initctl emit qmailstart works, /sbin/initctl start svscan also works but for some strange reasons unknown to me, automatic startup does not happen.

However, thanks for the reply. I have a problem with nm-applet too not starting up. I have now put that in /home/~/.kde4/Autostart after seeing your reply
Reply With Quote
Reply

Tags
fc13, job, or etc or eventd, or etc or init, started, upgrade

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FC12 to FC13 upgrade woes LionelHutz Installation, Upgrades and Live Media 6 14th November 2010 08:16 PM
How to safely remove unsupported packages after FC13 upgrade moonlighter Installation, Upgrades and Live Media 19 9th June 2010 01:15 AM
FC13 yum doesn't work after upgrade dcarp Installation, Upgrades and Live Media 2 7th June 2010 11:43 AM
/etc/event.d replaced /etc/init.d jwhite@jimmy Fedora Focus 3 26th July 2008 08:43 PM


Current GMT-time: 15:10 (Tuesday, 21-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

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 Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Nowy Sacz Photos on Instagram - Panzos Photos - Karakul Travel Photos