Accepting request 305543 from Base:System

- Modernize systemd service units

OBS-URL: https://build.opensuse.org/request/show/305543
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/syslogd?expand=0&rev=84
This commit is contained in:
Stephan Kulow 2015-05-07 07:21:19 +00:00 committed by Git OBS Bridge
commit b693effec7
4 changed files with 18 additions and 16 deletions

View File

@ -17,15 +17,17 @@
[Unit]
Description=Early Kernel Boot Messages
Requires=local-fs.target default.target
Wants=syslog.service
DefaultDependencies=no
Requires=local-fs.target
After=local-fs.target
Before=syslog.service default.target
Before=shutdown.target
RefuseManualStart=true
ConditionPathIsDirectory=/var/log
[Service]
Type=oneshot
StandardError=tty
StandardOutput=tty
RemainAfterExit=yes
Environment=KLOGCONSOLE_PARAMS=
EnvironmentFile=-/etc/sysconfig/boot

View File

@ -20,20 +20,19 @@
[Unit]
Description=System Kernel Logging Service
Requisite=syslog.service
BindsTo=syslog.service
After=syslog.service
Requisite=syslogd.service
BindsTo=syslogd.service
After=syslogd.service
RefuseManualStart=true
[Service]
Type=forking
Type=simple
StandardOutput=syslog
StandardError=syslog
PIDFile=/var/run/klogd.pid
Environment=KERNEL_LOGLEVEL=1
Environment=KLOGD_PARAMS=
EnvironmentFile=-/etc/sysconfig/syslog
ExecStart=/sbin/klogd -c $KERNEL_LOGLEVEL $KLOGD_PARAMS -x
ExecStart=/sbin/klogd -n -c $KERNEL_LOGLEVEL $KLOGD_PARAMS -x
[Install]
WantedBy=multi-user.target

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 6 08:04:35 UTC 2015 - werner@suse.de
- Modernize systemd service units
-------------------------------------------------------------------
Wed Mar 11 09:08:48 UTC 2015 - werner@suse.de

View File

@ -18,23 +18,19 @@
Description=System Logging Service
Conflicts=syslog-ng.service rsyslog.service
Requires=var-run.mount
Requires=syslog.target
Requires=syslog.socket
Requires=network.target
Requires=klogd.service
Before=syslog.target
Before=klogd.service
After=var-run.mount
After=network.target
[Service]
Type=forking
PIDFile=/var/run/syslogd.pid
Type=notify
Sockets=syslog.socket
StandardOutput=null
Environment=ADDITIONAL_SOCKET=
ExecStartPre=/usr/sbin/syslogd-service-prepare
EnvironmentFile=-/var/run/syslogd/additional-log-sockets.env
ExecStart=/usr/sbin/syslogd $ADDITIONAL_SOCKET
ExecStart=/usr/sbin/syslogd -n $ADDITIONAL_SOCKET
ExecReload=/bin/systemctl kill --signal=TSTP klogd.service
ExecReload=/sbin/killproc -p /var/run/syslogd.pid -HUP /usr/sbin/syslogd
ExecReload=/bin/systemctl kill --signal=CONT klogd.service