MT#6807 Adjust getty check for usage with systemd

Check for getty process without path information and arguments,
because on systemd powered systems we have:

| /sbin/agetty tty1 38400

while sysvinit powered systemd run:

| /sbin/getty 38400 tty1
| /sbin/getty 38400 tty2
| /sbin/getty 38400 tty3
| /sbin/getty 38400 tty4
| /sbin/getty 38400 tty5
| /sbin/getty 38400 tty6

As soon as one "getty" process is available that should be fine enough
for us, no matter whether it's /sbin/agetty or /sbin/getty.
(Of course it would be even better if we'd have regex support
in the tests, but that's not available in upstream code...)
mr3.3.1
Michael Prokop 12 years ago
parent 48e9ce9c5f
commit 19f247d5f6
Notes: Jenkins User 10 years ago
jenkins_trigger: false

@ -9,7 +9,7 @@ running-processes:
- collectd -C /etc/collectd/collectd.conf -f
- nginx
- rate-o-mat
- /sbin/getty 38400 tty
- getty
- udevd
- /usr/bin/logger -p daemon.info -t oss
- lua5.1 /usr/bin/prosody

@ -21,7 +21,7 @@ running-processes:
- "ha_logd: read process"
- /usr/sbin/hb_watchdog
- rate-o-mat
- /sbin/getty 38400 tty
- getty
- udevd
- /usr/bin/logger -p daemon.info -t oss
- lua5.1 /usr/bin/prosody

Loading…
Cancel
Save