'giorno a tutti :-)
ho recuperato e sistemato uno script che invia una email quando il
server viene avviato e riavviato (a chi può servire mi scriva pure in
privato).
Quello che mi crea problemi è fare in modo che lo script (quando viene
eseguito il reboot) venga per forza killato prima di postfix (ovviamente)
debian7 con insserv
insserv /etc/init.d/nome_script
#!/bin/sh
### BEGIN INIT INFO
# Provides: SystemEmail
# Required-Start: $remote_fs $syslog $ALL
# Required-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Send email
# Description: Sends an email at system start and shutdown
### END INIT INFO
qualche idea su come rendere realizzabile la cosa?
grazie!
Pol
--
Per REVOCARE l'iscrizione alla lista, inviare un email a
[email protected] con oggetto "unsubscribe". Per
problemi inviare un email in INGLESE a [email protected]
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: https://lists.debian.org/[email protected]