Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 12-12-2005, 09:11 AM   #1
Registered: Sep 2004
Location: France
Distribution: Debian Sarge, Etch. FC1,2,3,4,5. Slackware 10.0. Gentoo. Kubuntu.
Posts: 193

Rep: Reputation: 30
script for restarting ntpd in /home/user/.kde/autostart

Hi. I'm having a problem with the ntp daemon dying when booting up FC2, or FC3 using planetccrma kernels. If I boot with the original kernel, for instance 2.6.5-1.358 on FC2, there are no problems, and I have no problem restarting the ntp daemon when using the planetccrma kernels. I have a script in /home/user/.kde/autostart, that somebody gave me for autoloading soundfonts in the Audigy2 soundcard using sfxload, that works fine, but I'm not sure what's needed in a script for running /etc/init.d/ntpd start . I did try a few options but without success. The daemon appears to be dying somewhere between the time it's showing as being started in the bootup sequence, and logging into KDE. Details below.

Path to ntpd: /usr/sbin/ntpd (shared library).
Main menu/services shows. "ntpd dead but pid file exists".
ps auxw shows the command for ntp, as being,
"ntpd -U ntp -p /var/run/ -g" , and is normally started after "xinetd -stayalive" , and before "/usr/sbin/vsftpd". This is obviously when booting with the original kernel. In the dead daemon scenario, ntpd doesn't show up at all in ps auxw.
Help with a script appreciated if possible. Nigel. aka farpoint.
Old 12-12-2005, 09:59 AM   #2
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
If you want something in "Autostart," you need a .desktop file. But that's quite easy to create: Just right-click on the KDE desktop, select "Create New->Application Link," and put the (executable) script you want to run in the "Application" box.

After you've tested the item on your desktop, just move it from the Desktop directory to the .kde/Autostart directory.
Old 12-12-2005, 01:46 PM   #3
Registered: Sep 2004
Location: France
Distribution: Debian Sarge, Etch. FC1,2,3,4,5. Slackware 10.0. Gentoo. Kubuntu.
Posts: 193

Original Poster
Rep: Reputation: 30
Hi. I'm not having much success here. No problem creating the link to application, as I've done that before for music apps with no menu entries, but I'm concerned about the command "/etc/init.d/ntpd start" that I need to run, as this needs to be run as root. Trying it from the new desktop icon, it just returns a "KDEInit could not launch '/etc/init.d/ntpd start'".

I know this is going a bit OT, but this is the boot up situation with an NTP client accessing a server.

With the original kernel I get.
ntpd: Opening firewall for input from port 123 [ OK ]
ntpd: Opening firewall for input from port 123 [ OK ]
ntpd: Synchronizing with time server: [ OK ]
Starting ntpd: [ OK ]

But with the planetccrma kernels, and the third line, I get.
ntpd: Synchronizing with time server: [FAILED]
Starting ntpd: [ OK ]
But this clearly dies shortly after starting, no doubt because of the failure to synch with the server, and yet there is no problem restarting the ntp daemon once logged into KDE.

Is there anyway to run a command that needs to run as root with .kde/autostart? Nigel. aka farpoint.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell script adding autostart gnome script Coolrunr Programming 3 01-01-2009 02:23 PM
Load kde profile from /mnt/removable/user instead of /home/user Linux - General 3 12-02-2005 03:00 PM
How do I create a script to start up in .kde/Autostart? Slovak Slackware 11 11-30-2004 06:21 PM
SETI@HOME Autostart WarlockofVirgo Linux - General 1 08-15-2004 12:57 AM
KDE restarting and user question BajaNick Linux - General 5 01-04-2004 09:41 PM

All times are GMT -5. The time now is 10:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration