I want to check settings before starting the service. Check only True or False.
For example, i can only install mdadm package, but have not configured any raid disk. Then don't need run mdadm.service. mdadm.service [Unit] ConditionKernelCommandLine=|!noraidtab Condition... =| $(grep -qs '^[[:space:]]*\(MAILADDR\|PROGRAM\)[[:space:]]\+[^[:space:]]' /etc/mdadm.conf) Condition... =| $(grep -qs '^md[0-9]\+[[:space:]]*:' /proc/mdstat) or check in ExecStartPre and exit without run ExecStart [Service] ExecStartPre= grep -qs '^[[:space:]]*\(MAILADDR\|PROGRAM\)[[:space:]]\+[^[:space:]]' /etc/mdadm.conf || exit -- Alexey Shabalin _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
