mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Add ConditionVirtualization=no to the service file such that it is only started on LPARs. This service cannot run on z/VM nor KVM, and fails resulting in a degraded boot. Closes: https://github.com/ibm-s390-tools/s390-tools/pull/38 Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com> Acked-by: Harald Freudenberger <freude@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
24 lines
550 B
SYSTEMD
24 lines
550 B
SYSTEMD
#
|
|
# Systemd unit for starting cpacfstatsd daemon for Linux on System z
|
|
#
|
|
# Copyright IBM Corp. 2015, 2017
|
|
#
|
|
# s390-tools is free software; you can redistribute it and/or modify
|
|
# it under the terms of the MIT license. See LICENSE for details.
|
|
#
|
|
|
|
[Unit]
|
|
Description=CPACF statistics collection daemon process for Linux on System z
|
|
Documentation=man:cpacfstatsd(8)
|
|
ConditionVirtualization=no
|
|
|
|
[Service]
|
|
Type=forking
|
|
ExecStart=@usrsbin_path@/cpacfstatsd
|
|
PIDFile=/var/run/cpacfstatsd.pid
|
|
KillMode=process
|
|
Restart=no
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|