[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PID un chiarimento



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Il 12/02/2013 21:48, Davide Prina ha scritto:

> 
> Da Wheezy $ ls -l /var/run lrwxrwxrwx    /var/run -> /run
> 
> da http://www.debian.org/doc/debian-policy/ch-files.html 9.1.4 /run
> and /run/lock The directory /run is cleared at boot, normally by
> being a mount point for a temporary file system. Packages therefore
> must not assume that any files or directories under /run other than
> /run/lock exist unless the package has arranged to create those
> files or directories since the last reboot. Normally, this is done
> by the package via an init script. See Writing the scripts, Section
> 9.3.2 for more information.
> 
> start-stop-daemon: per gestire i demoni (avvio, terminazione) e il
> loro pid in /run
> 
> $ man start-stop-daemon
> 

Grazie Davide, sono fermo a Squeeze sulle macchine in produzione




> non ho installato nessuno di questi, ma ne ho guardati alcuni a
> caso (es: ssh, gdm3, cups, ...) e tutti usano correttamente
> start-stop-daemon
> 
> ho provato a scaricare il .deb di heartbeat per Wheezy ed in
> effetti non usa start-stop-daemon, secondo me si potrebbe
> (dovrebbe) aprire un bug... non ho trovato nulla che dica che
> bisogna usare start-stop-daemon, ma solo che è la modalità
> migliore:
> 
> http://www.debian.org/doc/debian-policy/ch-opersys.html#s-writing-init
>
>  The init.d scripts must ensure that they will behave sensibly
> (i.e., returning success and not starting multiple copies of a
> service) if invoked with start when the service is already running,
> or with stop when it isn't, and that they don't kill
> unfortunately-named user processes. The best way to achieve this is
> usually to use start-stop-daemon with the --oknodo option.

ci guardo con calma e cerco di capire


> 
>> ### aggiunto da me il 10/02/2013 rimuove il pid per il check
>> della connessione rm -rf /var/run/heartbeat.pid
> 
> non penso sia l'operazione corretta
> 
> Ciao Davide
> 

lo so che non e' corretta, ma al momento e' quello che mi risolve la
situazione, BTW grazie di nuovo.
- -- 

Mario Vittorio Guenzi
E-mail jclark@tiscali.it
Si vis pacem, para bellum
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlEbW8sACgkQm6qs1ZkNrIrHAQCdHV2uJ3t0kZyb4vEvogWPpgvm
ZY4AnAh1azTZ508/7rRH20VEonZtKoKH
=+vGs
-----END PGP SIGNATURE-----


Reply to: