Nethserver-crontabmanager


(Stéphane de Labrusse) #6

maybe there is an issue with the month setting, since I use the Month name, the setting ‘eachXmonth */X’ is maybe hard to understand, I should add the number of the month in the translation


(Roberto Sitzia) #7

Thanks @stephdl

I missed you a lot :smile:

I will play with your crontabmanager and I will give you my feedback.


November 2015 Development Updates
(Stéphane de Labrusse) #8

now the version is nethserver-crontabmanager-0.0.3-1, close of the final version


(Roberto Sitzia) #9

Hi @stephdl

as promised I have tried your work.
Your crontab-manager is essential and simple to use: good job and thank you for your contribution.

Just an hint: in the list page of crontab jobs I would add a column with the scheduling time to give administrator information at glance about every single job.

Hint above raise me a question: how to translate cronttab scheduling in a readable format?

I would like crontab-manager should be added to official repository and translated in every available language.


(Alessio Fattorini) #10

3 posts were split to a new topic: Start learning developing


Start learning developing
(Alessio Fattorini) #11

I’d like the same, @giacomo @davidep how can we move it on the forge?
Any QA process to pass?


Start learning developing
(Davide Principi) #12

Well, yes:

http://dev.nethserver.org/projects/nethforge/wiki/NethForge#Quality-Assurance-QA

That document does not say that the package can be uploaded on nethforge-testing by the RPM author, provided his SSH public key is in packages.nethserver.org

If QA is ok, I’ll fork the original repo, add to NethServer organization on GitHub, build the RPM and release to nethforge.

BTW I’d like to delegate this last step to another person, by granting him upload permissions on nethforge, too.


(Alessio Fattorini) #13

Looks straightforward, what do you think @stephdl?

Might the :point_up_2: above French man be our guy?


(Stéphane de Labrusse) #14

I love when people trust in me…but i’m just a man who is riding is life…

I will try to write a much longer answer and explain the vision i have on the work i provided/ will provide.

Actually at work…and with a baby at home who steals my time


(Alessio Fattorini) #15

Looking forward to your vision :smile: don’t worry man I know exactly what “baby at home” means.


(Stéphane de Labrusse) #16

yum install http://mirror.de-labrusse.fr/nethserver/nethserver-crontabmanager/nethserver-crontabmanager-0.0.4-1.ns6.sdl.noarch.rpm

  • now it is possible to enable/disabled the email notification to root
  • the key is tested looking if the name is already used

(Mārtiņš Zabarovskis) #17

I have some problem. :slight_smile:

I want to run following command every 15 minutes
llgal -d /home/nethserver_ibay/fotobanka -R -a --cf --exif Make,Model,DateTime --fe --lt --sy 400

I created a job in crontabmanager.
In /etc/crontab it looks nice:

## cron for Fotobankas apstrade
*/15 * * * *  root llgal -d /home/nethserver_ibay/fotobanka -R -a --cf --exif Make,Model,DateTime --fe --lt --sy 400

Also log shows, that it is executed:
Apr 30 20:30:02 servelis crond[27420]: (system) NULL security context for user, but SELinux in permissive mode, continuing ()
Apr 30 20:30:02 servelis CROND[27422]: (root) CMD (llgal -d /home/nethserver_ibay/fotobanka -R -a --cf --exif Make,Model,DateTime --fe --lt --sy 400)

But the process do not happen. :frowning: If I run the same command in terminal, all happens as expected.
what I miss?


(Stéphane de Labrusse) #18

Can you try to put the command inside quote ‘bash command’ with the complete path to the command


(Mārtiņš Zabarovskis) #19

Same result. :frowning:
May 1 00:00:01 servelis crond[3711]: (system) NULL security context for user, but SELinux in permissive mode, continuing ()
May 1 00:00:01 servelis CROND[3713]: (root) CMD (’/usr/local/bin/llgal -d /home/nethserver_ibay/fotobanka -R -a --cf --exif --fe --lt --sy 400 --title “M\305\253su bildes”’)


(Stéphane de Labrusse) #20

what about if you drop a file in /etc/cron.d/llegal with inside

*/15 * * * * root /usr/local/bin/llgal -d /home/nethserver_ibay/fotobanka -R -a --cf --exif --fe --lt --sy 400


(Stéphane de Labrusse) #21

I saw this post, maybe close, where the problem was a Path Issue -> http://www.linuxforums.org/forum/red-hat-fedora-linux/195186-crontab-not-running-script-post920563.html


(Mārtiņš Zabarovskis) #22

This works as expected.


(Stéphane de Labrusse) #23

Can you explain exactly how you solved your issue…we can write down some notes on the wiki page of crontabmanager


(Mārtiņš Zabarovskis) #24

Sorry! Yes - this your suggestion fixed the issue. But the problem is - It do not show up in crontabmanager.
Would it be reasonable to see in crontabmanager all the entries under /etc/cron.d ?

Martins


(Ralf Jeckel) #25

installed your crontabmanager instandly and it works great!
I would vote, that this should be standard in NS.
Thanks for this!

(Hope this like-button is mega enough :grin:)