/etc/init.d
NameSizeModeActions
apache-htcacheclean24890755editdlrm
apache281810755editdlrm
apparmor37400755editdlrm
apport29200755editdlrm
console-setup.sh12320755editdlrm
cron30620755editdlrm
cryptdisks9370755editdlrm
cryptdisks-early8960755editdlrm
dbus31520755editdlrm
docker29460755editdlrm
fail2ban70130755editdlrm
grub-common9850755editdlrm
hwclock.sh17480755editdlrm
irqbalance26380755editdlrm
iscsid15030755editdlrm
keyboard-setup.sh14790755editdlrm
kmod20440755editdlrm
lvm26950755editdlrm
lvm2-lvmpolld5860755editdlrm
mysql56070755editdlrm
netdiag18160755editdlrm
nginx45790755editdlrm
open-iscsi24330755editdlrm
open-vm-tools18460755editdlrm
php8.1-fpm42940755editdlrm
php8.3-fpm42940755editdlrm
php8.5-fpm42940755editdlrm
plymouth13860755editdlrm
plymouth-log7600755editdlrm
postfix30890755editdlrm
procps9590755editdlrm
rsync44170755editdlrm
screen-cleanup12220755editdlrm
ssh40600755editdlrm
udev68710755editdlrm
ufw20830755editdlrm
unattended-upgrades13910755editdlrm
uuidd13060755editdlrm
x11-common27570755editdlrm
Edit: /etc/init.d/postfix (3089B)
#!/bin/sh -e # Start or stop Postfix # # LaMont Jones # based on sendmail's init.d script ### BEGIN INIT INFO # Provides: postfix mail-transport-agent # Required-Start: $local_fs $remote_fs $syslog $named $network $time # Required-Stop: $local_fs $remote_fs $syslog $named $network # Should-Start: postgresql mysql clamav-daemon postgrey spamassassin saslauthd dovecot # Should-Stop: postgresql mysql clamav-daemon postgrey spamassassin saslauthd dovecot # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Postfix Mail Transport Agent # Description: postfix is a Mail Transport agent ### END INIT INFO PATH=/bin:/usr/bin:/sbin:/usr/sbin DAEMON=/usr/sbin/postfix NAME=Postfix TZ= unset TZ test -x $DAEMON && test -f /etc/postfix/main.cf || exit 0 . /lib/lsb/init-functions #DISTRO=$(lsb_release -is 2>/dev/null || echo Debian) enabled_instances() { postmulti -l -a | awk '($3=="y") { print $1}' } running() { INSTANCE="$1" if [ "X$INSTANCE" = X ]; then POSTMULTI="" else POSTMULTI="postmulti -i $INSTANCE -x " fi POSTCONF="${POSTMULTI} postconf" daemon_directory=$($POSTCONF -hx daemon_directory 2>/dev/null || echo /usr/lib/postfix/sbin) if ! ${POSTMULTI} $daemon_directory/master -t 2>/dev/null ; then echo y fi } case "$1" in start) RET=0 # for all instances that are not already running, handle chroot setup if needed, and start for INSTANCE in $(enabled_instances); do RUNNING=$(running $INSTANCE) if [ "X$RUNNING" = X ]; then /usr/lib/postfix/configure-instance.sh $INSTANCE CMD="/usr/sbin/postmulti -- -i $INSTANCE -x ${DAEMON}" if ! start-stop-daemon --start --exec $CMD start; then RET=1 fi fi done log_end_msg $RET ;; stop) RET=0 # for all instances that are not already running, handle chroot setup if needed, and start for INSTANCE in $(enabled_instances); do RUNNING=$(running $INSTANCE) if [ "X$RUNNING" != X ]; then CMD="/usr/sbin/postmulti -i $INSTANCE -x ${DAEMON}" if ! ${CMD} stop; then RET=1 fi fi done log_end_msg $RET ;; restart) $0 stop $0 start ;; force-reload|reload) ${DAEMON} reload ;; status) ALL=1 ANY=0 # for all instances that are not already running, handle chroot setup if needed, and start for INSTANCE in $(enabled_instances); do RUNNING=$(running $INSTANCE) if [ "X$RUNNING" != X ]; then ANY=1 else ALL=0 fi done # handle the case when postmulti returns *no* configured instances if [ $ANY = 0 ]; then ALL=0 fi if [ $ALL = 1 ]; then log_success_msg "postfix is running" exit 0 elif [ $ANY = 1 ]; then log_success_msg "some postfix instances are running" exit 0 else log_success_msg "postfix is not running" exit 3 fi ;; flush|check|abort) ${DAEMON} $1 ;; *) log_action_msg "Usage: /etc/init.d/postfix {start|stop|restart|reload|flush|check|abort|force-reload|status}" exit 1 ;; esac exit 0