Dr. Werner Fink 2011-08-17 15:35:33 +00:00 committed by Git OBS Bridge
parent 18bf42399c
commit bf1f1042a6

View File

@ -163,6 +163,7 @@ service=$(/bin/mktemp $RUN_PATH/syslog.XXXXXXXX) || exit 1
Requires=var-run.mount ${network:+$network }syslog.target${klogd:+ $klogd}
After=var-run.mount${network:+ $network}
Before=syslog.target${klogd:+ $klogd}
OnFailure=systemd-kmsg-syslogd.service
[Service]
Type=forking
@ -267,6 +268,7 @@ if test "$start_klogd" != no -a -x ${klog_bin} ; then
Requisite=syslog.service
BindTo=syslog.service
After=syslog.service
RefuseManualStart=true
[Service]
Type=forking
@ -295,3 +297,14 @@ if test "$start_klogd" != no ; then
/bin/mv $klogserv $RUN_PATH/klogd.service
/bin/ln -sf $RUN_PATH/klogd.service $UNIT_PATH/multi-user.target.wants/
fi
#
# Last but not least remove the old service links from SystemV init
#
for service in /etc/init.d/*.d/*syslog ; do
test -h $service || continue
rm -f $service
done
#
# end of /lib/systemd/system-generator/syslog-service-generator