Private
Server IP : 195.201.23.43  /  Your IP : 3.144.249.75
Web Server : Apache
System : Linux webserver2.vercom.be 5.4.0-192-generic #212-Ubuntu SMP Fri Jul 5 09:47:39 UTC 2024 x86_64
User : kdecoratie ( 1041)
PHP Version : 7.1.33-63+ubuntu20.04.1+deb.sury.org+1
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,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/opendkim/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /lib/opendkim/opendkim.service.generate
#! /bin/sh
#
# Generate systemd override file from /etc/default

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
Private