Blame tests/p_systemd/15-systemctl_list_non-native-services.sh
|
Rene Diepstraten |
8c0afd |
#!/bin/bash
|
|
Rene Diepstraten |
8c0afd |
# Author: Athmane Madjoudj <athmanem@gmail.com>
|
|
Rene Diepstraten |
8c0afd |
# Rene Diepstraten <rene@renediepstraten.nl>
|
|
Rene Diepstraten |
8c0afd |
|
|
Rene Diepstraten |
8c0afd |
[ ${centos_ver} -lt 7 ] && exit
|
|
Rene Diepstraten |
8c0afd |
t_Log "Running $0 - Checking if systemctl can check if a non-native service is enabled"
|
|
Rene Diepstraten |
8c0afd |
|
|
Rene Diepstraten |
8c0afd |
# netconsole is used as example because it's a non native service with minimal install
|
|
Rene Diepstraten |
8c0afd |
|
|
Rene Diepstraten |
8c0afd |
systemctl is-enabled netconsole.service 2> /dev/null | grep -q -E 'enabled|disabled'
|
|
Rene Diepstraten |
8c0afd |
|
|
Rene Diepstraten |
8c0afd |
t_CheckExitStatus $?
|