Official NuTyX forums

Help => Tips and Tricks => Topic started by: oyim on Fri Sep 13 04:47:46 2019

Title: fcron
Post by: oyim on Fri Sep 13 04:47:46 2019
Hi Thierry,

I've discovered that my script used to perform "cards sync" in the update-notifier isn't actually working, so I thought I would use a cron job for the cards sync.

I installed fcron...which I've never used before...so I did some reading to learn more about it. I created a crontab for cards sync, but it didn't run. I have no logs in /var/log/cron.log of it running. It appears that the fcron service didn't start? So, I looked in /etc/init.d/ and fcron was there.

I checked to see if it was running with...

Quote
sudo /etc/init.d/fcron status

...which gave me an output of...

Quote
/usr/sbin/fcron is not running.

So I started the service with...

Quote
sudo /etc/init.d/fcron start

I checked the status again, and it said it was running.  :D

I was just wondering if it's a possible bug that fcron doesn't start automatically after installing it or after rebooting after installing it?

Now I'm waiting to see if my cron jobs actually work.  ;D   :P

Thank you!



Title: Re: fcron
Post by: oyim on Mon Sep 16 04:35:30 2019
Well...my crontab for cards sync is working.  :D

However, even though fcron is in /etc/init.d/, it isn't started when I boot the system, and I have to start it each time. Is this how fcron is supposed to work, or is there something else that I need to do to ensure that it always starts?

Thank you!
Title: Re: fcron
Post by: Thierry on Mon Sep 16 08:19:58 2019
Did you install the fcron.service package ?
Title: Re: fcron
Post by: oyim on Mon Sep 16 08:38:55 2019
Did you install the fcron.service package ?

Thank you Thierry.

I installed fcron.

Before I installed it, I did a terminal search for "cron", and fcron is all that showed up. I don't see a package called fcron.service.
Title: Re: fcron
Post by: Thierry on Mon Sep 16 08:43:06 2019
Code: [Select]
get fcron.service
Title: Re: fcron
Post by: oyim on Mon Sep 16 08:49:09 2019
Code: [Select]
get fcron.service

That installed it! Thank you!

I'm not sure why I couldn't find it, but I do thank you for putting up with me. :)

Title: Re: fcron
Post by: Thierry on Fri Sep 27 18:16:20 2019
You’re welcome. I planning to build a package of you notification tool and include it into the 11.2 version. If you have any recommandations. Please there are welcome.
Title: Re: fcron
Post by: oyim on Sat Sep 28 22:18:32 2019
You’re welcome. I planning to build a package of you notification tool and include it into the 11.2 version. If you have any recommandations. Please there are welcome.

Well...

I've changed things up since I sent you what I had and the last video.  :P  ;D

I like to keep things as minimal as possible, so I've done away with the YAD window. My reasoning is that if I (or a user) sees the icon in the system tray, I (or they) will know that updates are available. So, now I have it so that by clicking the icon in the system tray, it opens the modified xterm that installs the updates automatically.

Now for a stupid question...   :o    8)

I haven't tried it, but I was wondering...

Since I'm trying to cut down on dependencies, instead of running a cron tab, would it be possible to add the script that periodically runs cards sync to /etc/init.d/  or /etc/rc.d/ ???

However...you're the Master! Whatever you think is best Thierry!  :)