E` run-parts che se la tira...
man run-parts per scoprire che ha delle pretese:Eppure avevo letto anch'io il manuale di run-parts ed i nomi mi sembrano corretti. gli script sono questi (adesso ho cambiato i settaggi a 0755, non ho provato se per caso fosse quello. li esegue come root pero', quindi non dovrebbe cambiar nulla...):
1. Filenames should consist
entirely of upper and lower case letters, digits, under
scores, and hyphens. Subdirectories of directory and
files with other names will be silently ignored.2. Scripts must follow the #!/bin/interpretername convention
in order to be executed. They will not automatically be
executed by /bin/sh.> non vanno proprio. Sono impostati con privilegi 0744 ed appartengono a
> root/root.Esempio di script in ip-up.d per lanciare wwwoffle:
$ v 0wwwoffle
-rwxr-xr-x 1 root root 265 feb 22 09:48 0wwwoffle*davide@snoopy: /etc/ppp/ip-up.d <09:15:03>
$ c 0wwwoffle
#!/bin/sh -e
## This script is run when the ppp link goes up.
## It simply puts wwwoffle online.wwwoffle -online
# -i per le immagini, -r1 per tutti i link di primo livello
sleep 2s
wwwoffle -f http://www.repubblica.it &
wwwoffle -f http://www.wired.com/news/ &
-rwxr-xr-x 1 root root
33 Apr 17 19:08 1sendmail
-rwxr-xr-x 1 root root
25 Apr 17 19:08 2licq
E questo e' il contenuto del primo, che ovviamente dovrebbe processare la coda di sendmail:
#!/bin/sh
/usr/sbin/sendmail -q
Mi sembra sia tutto giusto, pero' non va :/
Ciao.