.
OBS-URL: https://build.opensuse.org/package/show/Base:System/syslogd?expand=0&rev=45
This commit is contained in:
parent
18bf42399c
commit
bf1f1042a6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user