sysv-generator: port to use new unit_file_exists() call
authorLennart Poettering <lennart@poettering.net>
Thu, 7 Apr 2016 17:18:59 +0000 (19:18 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Apr 2016 11:43:32 +0000 (13:43 +0200)
commit5ae87056e3dc1162c2088daf0cb5affb0480ae54
treeb023eb26e4b7781d6a22cdc03817805998b921ab
parent4943d14306c3e456525fdb793e7f48efea5b9236
sysv-generator: port to use new unit_file_exists() call

The code previously queries the state of a unit file, but was only interested
in the existance of it, hence let's use unit_file_exists() instead, the same
way the SysV compat code in systemctl does it.
src/sysv-generator/sysv-generator.c