OXIESEC PANEL
- Current Dir:
/
/
etc
/
rc5.d
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/20/2025 05:23:23 PM
rwxr-xr-x
📄
K01apache-htcacheclean
2.43 KB
07/16/2019 06:14:45 PM
rwxr-xr-x
📄
S01acpid
2.22 KB
04/22/2017 01:14:06 PM
rwxr-xr-x
📄
S01apache2
7.99 KB
07/16/2019 06:14:45 PM
rwxr-xr-x
📄
S01apport
2.85 KB
05/10/2022 01:23:35 PM
rwxr-xr-x
📄
S01atd
1.05 KB
08/21/2015 10:09:22 PM
rwxr-xr-x
📄
S01console-setup.sh
1.2 KB
04/19/2018 06:53:32 AM
rwxr-xr-x
📄
S01cron
2.98 KB
11/16/2017 05:29:19 AM
rwxr-xr-x
📄
S01dbus
2.75 KB
11/15/2017 10:22:22 PM
rwxr-xr-x
📄
S01grub-common
985 bytes
03/18/2019 04:11:57 PM
rwxr-xr-x
📄
S01irqbalance
2.39 KB
10/25/2017 02:27:49 PM
rwxr-xr-x
📄
S01lvm2-lvmetad
571 bytes
12/03/2017 10:16:07 AM
rwxr-xr-x
📄
S01lvm2-lvmpolld
586 bytes
12/03/2017 10:16:08 AM
rwxr-xr-x
📄
S01lxcfs
2.32 KB
11/23/2018 04:17:19 AM
rwxr-xr-x
📄
S01lxd
2.19 KB
11/23/2018 06:58:51 PM
rwxr-xr-x
📄
S01mdadm
2.59 KB
01/30/2019 02:51:36 PM
rwxr-xr-x
📄
S01mysql
5.48 KB
01/12/2018 10:57:39 AM
rwxr-xr-x
📄
S01open-vm-tools
1.8 KB
04/05/2019 01:47:23 PM
rwxr-xr-x
📄
S01php7.2-fpm
4.68 KB
01/13/2020 06:39:59 PM
rwxr-xr-x
📄
S01plymouth
1.33 KB
04/04/2019 02:33:20 PM
rwxr-xr-x
📄
S01postfix
3.54 KB
10/11/2018 08:15:25 PM
rwxr-xr-x
📄
S01rsync
4.25 KB
12/13/2017 06:34:49 AM
rwxr-xr-x
📄
S01rsyslog
2.8 KB
01/14/2018 04:19:35 PM
rwxr-xr-x
📄
S01slapd
5.31 KB
07/01/2020 07:38:55 PM
rwxr-xr-x
📄
S01ssh
3.75 KB
01/25/2018 11:13:31 PM
rwxr-xr-x
📄
S01unattended-upgrades
1.36 KB
04/29/2019 10:13:14 AM
rwxr-xr-x
📄
S01uuidd
1.28 KB
08/22/2019 11:47:46 PM
rwxr-xr-x
Editing: S01postfix
Close
#!/bin/sh -e # Start or stop Postfix # # LaMont Jones <lamont@debian.org> # 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 POSTCONF="postconf" else POSTCONF="postmulti -i $INSTANCE -x postconf" fi queue=$($POSTCONF -hx queue_directory 2>/dev/null || echo /var/spool/postfix) daemondir=$($POSTCONF -hx daemon_directory 2>/dev/null || echo /usr/lib/postfix/sbin) if [ -f ${queue}/pid/master.pid ]; then pid=$(sed 's/ //g' ${queue}/pid/master.pid) # what directory does the executable live in. stupid prelink systems. dir=$(ls -l /proc/$pid/exe 2>/dev/null | sed 's/.* -> //; s/\/[^\/]*$//') if [ "X$dir" = "X${daemondir}" ]; then echo y fi fi } case "$1" in start) log_daemon_msg "Starting Postfix Mail Transport Agent" postfix 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 quiet-quick-start; then RET=1 fi fi done log_end_msg $RET ;; stop) log_daemon_msg "Stopping Postfix Mail Transport Agent" postfix 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} quiet-stop; then RET=1 fi fi done log_end_msg $RET ;; restart) $0 stop $0 start ;; force-reload|reload) log_action_begin_msg "Reloading Postfix configuration" if ${DAEMON} quiet-reload; then log_action_end_msg 0 else log_action_end_msg 1 fi ;; 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