File udplogger.service of Package udplogger

[Unit]
Description=Start udplogger to log remote netconsole messages
After=remote-fs.target network.target syslog.target

[Service]
Type=simple
Restart=always
RestartSec=10
Environment=NETCONSOLE_IP=0.0.0.0
Environment=NETCONSOLE_PORT=6666
Environment=NETCONSOLE_LOGDIR=/var/log/netconsole
EnvironmentFile=-/etc/udplogger.conf
ExecStartPre=/usr/bin/mkdir -p --mode=750 "${NETCONSOLE_LOGDIR}"
ExecStart=/usr/bin/udplogger ip=${NETCONSOLE_IP} port=${NETCONSOLE_PORT} dir="${NETCONSOLE_LOGDIR}" perm=640

[Install]
WantedBy=multi-user.target
openSUSE Build Service is sponsored by