|
Server : LiteSpeed System : Linux srv104790275 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64 User : dewac4139 ( 1077) PHP Version : 8.0.30 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, Directory : /usr/lib/opendkim/ |
Upload File : |
#! /bin/sh # # Generate systemd override file from /etc/default # DEPRECATION NOTICE: Use of this script is discouraged. # # Instead of editing /etc/default/opendkim and executing this script to generate # override files in /etc, please edit the settings in /etc/opendkim.conf # directly. If needed, use "systemctl edit opendkim.service" to create and # manage configuration overrides. set -e NAME=opendkim RUNDIR=/run/$NAME USER=$NAME GROUP=$NAME SOCKET=local:$RUNDIR/$NAME.sock _RUNDIR=$RUNDIR _USER=$USER _GROUP=$GROUP _SOCKET=$SOCKET # Include defaults if available if [ -f /etc/default/$NAME ]; then . /etc/default/$NAME fi # Generate service override file SERVICE=$(mktemp $NAME.service.XXXXXXXXXX) if [ "$EXTRAAFTER" != "" ]; then echo "[Unit]" >> $SERVICE echo "After=$EXTRAAFTER" >> $SERVICE fi if [ "$RUNDIR" != "$_RUNDIR" ]; then echo "[Service]" >> $SERVICE echo "PIDFile=$RUNDIR/$NAME.pid" >> $SERVICE fi if [ "$USER" != "$_USER" ] || [ "$GROUP" != "$_GROUP" ]; then grep -q -F "[Service]" $SERVICE || echo "[Service]" >> $SERVICE echo "User=$USER" >> $SERVICE echo "Group=$GROUP" >> $SERVICE fi if [ "$SOCKET" != "$_SOCKET" ] || [ "$RUNDIR" != "$_RUNDIR" ] || [ "$DAEMON_OPTS" != "" ]; then grep -q -F "[Service]" $SERVICE || echo "[Service]" >> $SERVICE echo "ExecStart=" >> $SERVICE echo "ExecStart=/usr/sbin/opendkim -P $RUNDIR/$NAME.pid -p $SOCKET $DAEMON_OPTS" >> $SERVICE fi if [ -s $SERVICE ] ; then mkdir -p /etc/systemd/system/$NAME.service.d install -m 644 $SERVICE /etc/systemd/system/$NAME.service.d/override.conf fi # Generate tmpfiles.d override file TMPFILE=$(mktemp $NAME.tmpfile.XXXXXXXXXX) echo "d $RUNDIR 0750 $USER $GROUP - -" > $TMPFILE if ! cmp -s $TMPFILE /usr/lib/tmpfiles.d/opendkim.conf; then mkdir -p /etc/tmpfiles.d install -m 644 $TMPFILE /etc/tmpfiles.d/$NAME.conf fi rm -f $SERVICE $TMPFILE