Coder Social home page Coder Social logo

Comments (8)

gsanchietti avatar gsanchietti commented on July 17, 2024

Problema riscontrato su un NethServer 6.8

from dev.

gsanchietti avatar gsanchietti commented on July 17, 2024

cron job: add timeout. Nethesis/dev#5031...

from dev.

gsanchietti avatar gsanchietti commented on July 17, 2024

cron job: add timeout. Nethesis/dev#5031...

from dev.

gsanchietti avatar gsanchietti commented on July 17, 2024

In nethserver-testing:

  • nethserver-inventory-2.0.4-1.1.ga5f661c.ns7.noarch.rpm
  • nethserver-inventory-1.0.2-1.1.ge572bbb.ns6.noarch.rpm

Test case

Verificare che il cronjob venga terminato dopo 120 secondi.

from dev.

gsanchietti avatar gsanchietti commented on July 17, 2024

Su NS6 timeout non ha l'opzione -k

nethserver-inventory.noarch 0:1.0.2-1.1.ge572bbb.ns6
timeout -k 180 120 /usr/sbin/nethserver-inventory
timeout: invalid option -- 'k'

Il timeout funziona correttamente (ho artificiosamente rallentato /usr/lib/ruby/site_ruby/1.8/facter/products.rb aggiungendo uno sleep).

from dev.

gsanchietti avatar gsanchietti commented on July 17, 2024

Rimossa l'opzione "-k" in NS 6.

In nethesis-testing:

  • nethserver-inventory-1.0.2-1.2.ga638e02.ns6.noarch.rpm

from dev.

gsanchietti avatar gsanchietti commented on July 17, 2024

On NS 6:

[root@test2 ~]# rpm -q nethserver-inventory
nethserver-inventory-1.0.2-1.2.ga638e02.ns6.noarch
[root@test2 ~]# cat /etc/cron.daily/nethserver-inventory 
#!/bin/bash

exec timeout 120 /usr/sbin/nethserver-inventory

from dev.

gsanchietti avatar gsanchietti commented on July 17, 2024

Rilasciato:

  • nethserver-inventory-2.0.5-1.ns7.noarch.rpm
  • nethserver-inventory-1.0.4-1.ns6.noarch.rpm (6.8 e 6.9)

from dev.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.