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

boot order



Hi all :-)

on debian stable I added a script to /etc/init.d/, that script sends an email when the system boot and when the system shutdown

I need run that script before that postfix has killed

what's the best way to fill:

cat /etc/init.d/systememail

#!/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
[...]

normally after created a script I do:

insserv /etc/init.d/name_of_script

thanks for help!

Pol


Reply to: