systemctl: move check whether a service exists as native unit file to install.c
authorLennart Poettering <lennart@poettering.net>
Thu, 7 Apr 2016 15:40:11 +0000 (17:40 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Apr 2016 11:43:32 +0000 (13:43 +0200)
commite735decc38fd60921c8d8c0345d01fd4ed874677
treee6031ab5bf607cb0d4b278d9d1ad0596ace97570
parent27c06cb516c3b87c34f2a1c2c227152997d05c8c
systemctl: move check whether a service exists as native unit file to install.c

Move the search path check from the SysV service compat support into install.c
so that we can reuse the usual algorithm instead of rolling a private loop for
this.
src/shared/install.c
src/shared/install.h
src/systemctl/systemctl.c