Bonjour la liste

Mon ordinateur personnel (sur lequel je développe http://refpersys.org/ <http://refpersys.org/> à mes temps perdus) est sous Debian/Sid. Avec une carte mère MSI X399 et processeur AMD Ryzen Threadripper 2970WX

J'ai codé https://github.com/bstarynk/misc-basile/blob/master/sync-periodically.c <https://github.com/bstarynk/misc-basile/blob/master/sync-periodically.c> (sous licence GPLv3+). Ce programme fait régulièrement un appel système sync(2) <https://man7.org/linux/man-pages/man2/sync.2.html> et le binaire est installé en /usr/local/bin/sync-periodically

J'ai également installé https://github.com/bstarynk/misc-basile/blob/master/sync-periodically.service <https://github.com/bstarynk/misc-basile/blob/master/sync-periodically.service> en /etc/systemd/system/sync-periodically.service

ls -l /etc/systemd/system/sync-periodically.service
-rw-r--r-- 1 root root 1716 Oct 11 11:04 /etc/systemd/system/sync-periodically.service
Concernant le binaire

rimski.x86_64 ~/refpersys 9:04 .0 %ls -l_/usr/local/bin/sync-periodically_ -rwxr-xr-x 1 basilest basilegr 32624 May 10 16:01 /usr/local/bin/sync-periodically
rimski.x86_64 ~/refpersys 9:05 .0 %ldd  _/usr/local/bin/sync-periodically_
        linux-vdso.so.1 (0x00007fff6ef7b000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f739ae10000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f739b014000)

Je voudrais lancer /usr/local/bin/sync-periodically --pid-file=/var/run/sync-periodically.pid --sync-period=3 --log-period=2000 au démarrage de ma Debian.


J'ai dans mon /etc/crontab la ligne @reboot         sync /usr/local/bin/sync-periodically --pid-file=/var/run/sync-periodically.pid --sync-period=3 --log-period=2000 &

Ca ne marche pas.

J'ai certainement oublié quelque chose. Mais quoi exactement?



Cordialement


PS. Je suis attristé, comme beaucoup, du décès prématuré de Laurent Séguin, l'un des piliers du logiciel libre en France.

--
Basile STARYNKEVITCH   == http://starynkevitch.net/Basile
opinions are mine only - les opinions sont seulement miennes
Bourg La Reine, France; <[email protected]>
(mobile phone: cf my web page / voir ma page web...)

Répondre à