REDROOM
PHP 8.5.2
Path:
Logout
Edit File
Size: 802 B
Close
//lib/networkd-dispatcher/off.d/postfix
Text
Base64
#!/bin/sh -e # Called when an interface disconnects # Written by LaMont Jones <lamont@debian.org> # start or reload Postfix as needed # 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 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 exit 0
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
chrony-onoffline
787 B
lrwxr-xr-x
2024-10-02 12:40:49
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
postfix
802 B
lrwxr-xr-x
2024-04-08 14:48:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).