Server IP : 128.199.20.84 / Your IP : 172.71.254.243 Web Server : Apache/2.4.41 (Ubuntu) System : Linux competent-maruti 5.4.0-128-generic #144-Ubuntu SMP Tue Sep 20 11:00:04 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.0.20 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF Directory (0755) : /var/lib/python/../python/../python/../python/../../lib/python/../../../etc/network/if-up.d/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
#!/bin/sh -e # Called when a new interface comes up # Written by LaMont Jones <[email protected]> # don't bother to restart postfix when lo is configured. if [ "$IFACE" = "lo" ]; then exit 0 fi # If /usr isn't mounted yet, silently bail. if [ ! -d /usr/lib/postfix ]; then exit 0 fi RUNNING="" # If master is running, force a queue run to unload any mail that is # hanging around. Yes, sendmail is a symlink... if [ -f /var/spool/postfix/pid/master.pid ]; then pid=$(sed 's/ //g' /var/spool/postfix/pid/master.pid) exe=$(ls -l /proc/$pid/exe 2>/dev/null | sed 's/.* //;s/.*\///') if [ "X$exe" = "Xmaster" ]; then RUNNING="y" fi fi # start or reload Postfix as needed if [ ! -x /sbin/resolvconf ]; then f=/etc/resolv.conf if ! cp $f $(postconf -hx queue_directory)$f 2>/dev/null; then exit 0 fi if [ -n "$RUNNING" ]; then service postfix reload >/dev/null 2>&1 fi fi # If master is running, force a queue run to unload any mail that is # hanging around. Yes, sendmail is a symlink... if [ -n "$RUNNING" ]; then if [ -x /usr/sbin/sendmail ]; then /usr/sbin/sendmail -q >/dev/null 2>&1 fi fi