diff options
author | Matthew Thode <mthode@mthode.org> | 2016-08-18 16:27:27 -0500 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2016-08-23 14:25:09 -0400 |
commit | 3f1373a9785de5c5843c060835e444046ab50756 (patch) | |
tree | 4ec487f99dc1d1c2ec6644cb04a331bfcaaa5d5e /setup.py | |
parent | 6a8aa46863f1a4a5f3c0d37d34fd02d57790be01 (diff) | |
download | vyos-cloud-init-3f1373a9785de5c5843c060835e444046ab50756.tar.gz vyos-cloud-init-3f1373a9785de5c5843c060835e444046ab50756.zip |
add install option for openrc
Adds an install option for for OpenRC init scripts.
I've also restricted installing tests more correctly.
Also, don't hardcode the path to ip (/bin/ip on gentoo).
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -74,6 +74,7 @@ INITSYS_FILES = { 'sysvinit': [f for f in glob('sysvinit/redhat/*') if is_f(f)], 'sysvinit_freebsd': [f for f in glob('sysvinit/freebsd/*') if is_f(f)], 'sysvinit_deb': [f for f in glob('sysvinit/debian/*') if is_f(f)], + 'sysvinit_openrc': [f for f in glob('sysvinit/gentoo/*') if is_f(f)], 'systemd': [f for f in (glob('systemd/*.service') + glob('systemd/*.target')) if is_f(f)], 'systemd.generators': [f for f in glob('systemd/*-generator') if is_f(f)], @@ -83,6 +84,7 @@ INITSYS_ROOTS = { 'sysvinit': '/etc/rc.d/init.d', 'sysvinit_freebsd': '/usr/local/etc/rc.d', 'sysvinit_deb': '/etc/init.d', + 'sysvinit_openrc': '/etc/init.d', 'systemd': pkg_config_read('systemd', 'systemdsystemunitdir'), 'systemd.generators': pkg_config_read('systemd', 'systemdsystemgeneratordir'), |