Files
s390-tools/systemd/mon_procd.service.in
Gerald Schaefer 2215ba672e mon_tools: update udevadm location
Modern distributions do not provide the symlink /sbin/udevadm any more.
Use /usr/bin/udevadm instead for the example init script / systemd units.
Note that those are meant for example purpose and would need to be adjusted
by distributions, so no extra effort is taken to determine the actual
location of udevadm.

Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
2020-07-24 13:01:09 +02:00

41 lines
1.1 KiB
SYSTEMD

#
# Systemd unit for mon_procd (monitor z/VM guest processes)
#
# Copyright IBM Corp. 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=Monitor Linux on z/VM processes
Documentation=man:mon_procd(8)
ConditionVirtualization=zvm
After=remote-fs.target
[Service]
#
# Specify a file with the environment variables using the EnvironmentFile=
# service property.
#
EnvironmentFile=@sysconf_path@/sysconfig/mon_procd
#
# Alternatively, you can specify the environment variables directly,
# using the Environment= service property, which can be overridden by
# "systemctl edit --full mon_procd".
# In this case, the EnvironmentFile= needs to be commented out, otherwise
# it would override the directly specified variables.
#
#Environment=PROC_INTERVAL=30
ExecStartPre=-/sbin/modprobe monwriter
ExecStartPre=/usr/bin/udevadm settle --timeout=10
ExecStart=@usrsbin_path@/mon_procd -i $PROC_INTERVAL
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Type=forking
PIDFile=/run/mon_procd.pid
[Install]
WantedBy=multi-user.target