diff options
Diffstat (limited to 'knetworkconf/backends/service.pl.in')
-rw-r--r-- | knetworkconf/backends/service.pl.in | 106 |
1 files changed, 97 insertions, 9 deletions
diff --git a/knetworkconf/backends/service.pl.in b/knetworkconf/backends/service.pl.in index 018bb49..f92151f 100644 --- a/knetworkconf/backends/service.pl.in +++ b/knetworkconf/backends/service.pl.in @@ -59,9 +59,10 @@ sub gst_service_sysv_get_paths "redhat-8.0" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], "redhat-9" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], "openna-1.0" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], - + "rhel-5" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], "rhel-6" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], + "rhel-7" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], "mandrake-7.1" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], "mandrake-7.2" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], @@ -89,6 +90,7 @@ sub gst_service_sysv_get_paths "debian-5.0" => ["$gst_prefix/etc", "$gst_prefix/etc/init.d", "../init.d"], "debian-6.0" => ["$gst_prefix/etc", "$gst_prefix/etc/init.d", "../init.d"], "debian-7.0" => ["$gst_prefix/etc", "$gst_prefix/etc/init.d", "../init.d"], + "debian-8.0" => ["$gst_prefix/etc", "$gst_prefix/etc/init.d", "../init.d"], "debian-testing" => ["$gst_prefix/etc", "$gst_prefix/etc/init.d", "../init.d"], "ubuntu-5.04" => ["$gst_prefix/etc", "$gst_prefix/etc/init.d", "../init.d"], "ubuntu-5.10" => ["$gst_prefix/etc", "$gst_prefix/etc/init.d", "../init.d"], @@ -107,16 +109,31 @@ sub gst_service_sysv_get_paths "ubuntu-12.04" => ["$gst_prefix/etc", "$gst_prefix/etc/init.d", "../init.d"], "ubuntu-12.10" => ["$gst_prefix/etc", "$gst_prefix/etc/init.d", "../init.d"], "ubuntu-13.04" => ["$gst_prefix/etc", "$gst_prefix/etc/init.d", "../init.d"], - + "ubuntu-13.10" => ["$gst_prefix/etc", "$gst_prefix/etc/init.d", "../init.d"], + "ubuntu-14.04" => ["$gst_prefix/etc", "$gst_prefix/etc/init.d", "../init.d"], + "ubuntu-14.10" => ["$gst_prefix/etc", "$gst_prefix/etc/init.d", "../init.d"], + "ubuntu-15.04" => ["$gst_prefix/etc", "$gst_prefix/etc/init.d", "../init.d"], + "suse-7.0" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d", "../"], "suse-9.0" => ["$gst_prefix/etc/init.d", "$gst_prefix/etc/init.d", "../"], "suse-9.1" => ["$gst_prefix/etc/init.d", "$gst_prefix/etc/init.d", "../"], + "suse-10.0" => ["$gst_prefix/etc/init.d", "$gst_prefix/etc/init.d", "../"], + "suse-10.1" => ["$gst_prefix/etc/init.d", "$gst_prefix/etc/init.d", "../"], + "suse-10.2" => ["$gst_prefix/etc/init.d", "$gst_prefix/etc/init.d", "../"], + "suse-10.3" => ["$gst_prefix/etc/init.d", "$gst_prefix/etc/init.d", "../"], + "suse-10.4" => ["$gst_prefix/etc/init.d", "$gst_prefix/etc/init.d", "../"], + "suse-11.0" => ["$gst_prefix/etc/init.d", "$gst_prefix/etc/init.d", "../"], + "suse-11.1" => ["$gst_prefix/etc/init.d", "$gst_prefix/etc/init.d", "../"], + "suse-11.2" => ["$gst_prefix/etc/init.d", "$gst_prefix/etc/init.d", "../"], + "suse-11.3" => ["$gst_prefix/etc/init.d", "$gst_prefix/etc/init.d", "../"], "turbolinux-7.0" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], "pld-1.0" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], "pld-1.1" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], "pld-1.99" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], + "pld-2.0" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], + "pld-2.0" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], "fedora-1" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], "fedora-2" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], @@ -128,6 +145,10 @@ sub gst_service_sysv_get_paths "fedora-15" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], "fedora-16" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], "fedora-17" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], + "fedora-18" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], + "fedora-19" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], + "fedora-20" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], + "fedora-21" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], "vine-3.0" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], "vine-3.1" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], @@ -160,6 +181,7 @@ sub gst_service_sysv_get_runlevels "rhel-5" => [3, 5], "rhel-6" => [3, 5], + "rhel-7" => [3, 5], "mandrake-7.1" => [3, 5], "mandrake-7.2" => [3, 5], @@ -188,6 +210,7 @@ sub gst_service_sysv_get_runlevels "debian-5.0" => [2, 3], "debian-6.0" => [2, 3], "debian-7.0" => [2, 3], + "debian-8.0" => [2, 3], "debian-testing" => [2, 3], "ubuntu-5.04" => [2, 3], "ubuntu-5.10" => [2, 3], @@ -206,16 +229,31 @@ sub gst_service_sysv_get_runlevels "ubuntu-12.04" => [2, 3], "ubuntu-12.10" => [2, 3], "ubuntu-13.04" => [2, 3], - + "ubuntu-13.10" => [2, 3], + "ubuntu-14.04" => [2, 3], + "ubuntu-14.10" => [2, 3], + "ubuntu-15.04" => [2, 3], + "suse-7.0" => [3, 5], "suse-9.0" => [3, 5], "suse-9.1" => [3, 5], + "suse-10.0" => [3, 5], + "suse-10.1" => [3, 5], + "suse-10.2" => [3, 5], + "suse-10.3" => [3, 5], + "suse-10.4" => [3, 5], + "suse-11.0" => [3, 5], + "suse-11.1" => [3, 5], + "suse-11.2" => [3, 5], + "suse-11.3" => [3, 5], "turbolinux-7.0" => [3, 5], "pld-1.0" => [3, 5], "pld-1.1" => [3, 5], "pld-1.99" => [3, 5], + "pld-2.0" => [3, 5], + "pld-3.0" => [3, 5], "fedora-1" => [3, 5], "fedora-2" => [3, 5], @@ -227,7 +265,11 @@ sub gst_service_sysv_get_runlevels "fedora-15" => [3, 5], "fedora-16" => [3, 5], "fedora-17" => [3, 5], - + "fedora-18" => [3, 5], + "fedora-19" => [3, 5], + "fedora-20" => [3, 5], + "fedora-21" => [3, 5], + "vine-3.0" => [3, 5], "vine-3.1" => [3, 5], "ark" => [3, 5], @@ -255,9 +297,10 @@ sub gst_service_get_runlevel_roles "redhat-8.0" => "redhat-5.2", "redhat-9" => "redhat-5.2", "openna-1.0" => "redhat-5.2", - + "rhel-5" => "redhat-5.2", "rhel-6" => "redhat-5.2", + "rhel-7" => "redhat-5.2", "mandrake-7.1" => "redhat-5.2", "mandrake-7.2" => "redhat-5.2", @@ -278,7 +321,7 @@ sub gst_service_get_runlevel_roles "conectiva-9" => "redhat-5.2", "conectiva-10" => "redhat-5.2", - + "debian-2.2" => "debian-2.2", "debian-3.0" => "debian-2.2", "debian-3.1" => "debian-2.2", @@ -286,6 +329,7 @@ sub gst_service_get_runlevel_roles "debian-5.0" => "debian-2.2", "debian-6.0" => "debian-2.2", "debian-7.0" => "debian-2.2", + "debian-8.0" => "debian-2.2", "debian-testing" => "debian-2.2", "ubuntu-5.04" => "debian-2.2", "ubuntu-5.10" => "debian-2.2", @@ -304,11 +348,24 @@ sub gst_service_get_runlevel_roles "ubuntu-12.04" => "debian-2.2", "ubuntu-12.10" => "debian-2.2", "ubuntu-13.04" => "debian-2.2", - + "ubuntu-13.10" => "debian-2.2", + "ubuntu-14.04" => "debian-2.2", + "ubuntu-14.10" => "debian-2.2", + "ubuntu-15.04" => "debian-2.2", + "suse-7.0" => "redhat-5.2", "suse-9.0" => "redhat-5.2", "suse-9.1" => "redhat-5.2", - + "suse-10.0" => "redhat-5.2", + "suse-10.1" => "redhat-5.2", + "suse-10.2" => "redhat-5.2", + "suse-10.3" => "redhat-5.2", + "suse-10.4" => "redhat-5.2", + "suse-11.0" => "redhat-5.2", + "suse-11.1" => "redhat-5.2", + "suse-11.2" => "redhat-5.2", + "suse-11.3" => "redhat-5.2", + "turbolinux-7.0" => "redhat-5.2", "pld-1.0" => "redhat-5.2", "pld-1.1" => "redhat-5.2", @@ -323,6 +380,10 @@ sub gst_service_get_runlevel_roles "fedora-15" => "redhat-5.2", "fedora-16" => "redhat-5.2", "fedora-17" => "redhat-5.2", + "fedora-18" => "redhat-5.2", + "fedora-19" => "redhat-5.2", + "fedora-20" => "redhat-5.2", + "fedora-21" => "redhat-5.2", "vine-3.0" => "redhat-5.2", "vine-3.1" => "redhat-5.2", @@ -348,6 +409,10 @@ sub gst_service_get_runlevel_roles "archlinux" => "freebsd-5", "freebsd-5" => "freebsd-5", "freebsd-6" => "freebsd-5", + "freebsd-7" => "freebsd-5", + "freebsd-8" => "freebsd-5", + "freebsd-9" => "freebsd-5", + "freebsd-10" => "freebsd-5", ); %runlevels= @@ -1793,6 +1858,7 @@ sub gst_service_get_status "debian-5.0" => \&gst_service_debian_get_status, "debian-6.0" => \&gst_service_debian_get_status, "debian-7.0" => \&gst_service_debian_get_status, + "debian-8.0" => \&gst_service_debian_get_status, "debian-testing" => \&gst_service_debian_get_status, "ubuntu-5.04" => \&gst_service_debian_get_status, "ubuntu-5.10" => \&gst_service_debian_get_status, @@ -1811,7 +1877,11 @@ sub gst_service_get_status "ubuntu-12.04" => \&gst_service_debian_get_status, "ubuntu-12.10" => \&gst_service_debian_get_status, "ubuntu-13.04" => \&gst_service_debian_get_status, - + "ubuntu-13.10" => \&gst_service_debian_get_status, + "ubuntu-14.04" => \&gst_service_debian_get_status, + "ubuntu-14.10" => \&gst_service_debian_get_status, + "ubuntu-15.04" => \&gst_service_debian_get_status, + "redhat-5.2" => \&gst_service_redhat_get_status, "redhat-6.0" => \&gst_service_redhat_get_status, "redhat-6.1" => \&gst_service_redhat_get_status, @@ -1824,6 +1894,7 @@ sub gst_service_get_status "redhat-9" => \&gst_service_redhat_get_status, "rhel-5" => \&gst_service_redhat_get_status, "rhel-6" => \&gst_service_redhat_get_status, + "rhel-7" => \&gst_service_redhat_get_status, "mandrake-7.2" => \&gst_service_redhat_get_status, "fedora-1" => \&gst_service_redhat_get_status, "fedora-2" => \&gst_service_redhat_get_status, @@ -1833,17 +1904,34 @@ sub gst_service_get_status "fedora-15" => \&gst_service_redhat_get_status, "fedora-16" => \&gst_service_redhat_get_status, "fedora-17" => \&gst_service_redhat_get_status, + "fedora-18" => \&gst_service_redhat_get_status, + "fedora-19" => \&gst_service_redhat_get_status, + "fedora-20" => \&gst_service_redhat_get_status, + "fedora-21" => \&gst_service_redhat_get_status, "rpath" => \&gst_service_redhat_get_status, "suse-9.0" => \&gst_service_suse_get_status, "suse-9.1" => \&gst_service_suse_get_status, + "suse-10.0" => \&gst_service_suse_get_status, + "suse-10.1" => \&gst_service_suse_get_status, + "suse-10.2" => \&gst_service_suse_get_status, + "suse-10.3" => \&gst_service_suse_get_status, + "suse-10.4" => \&gst_service_suse_get_status, + "suse-11.0" => \&gst_service_suse_get_status, + "suse-11.1" => \&gst_service_suse_get_status, + "suse-11.2" => \&gst_service_suse_get_status, + "suse-11.3" => \&gst_service_suse_get_status, "archlinux" => \&gst_service_archlinux_get_status, "gentoo" => \&gst_service_gentoo_get_status, "vlos-1.2" => \&gst_service_gentoo_get_status, "freebsd-5" => \&gst_service_rcng_get_status, "freebsd-6" => \&gst_service_rcng_get_status, + "freebsd-7" => \&gst_service_rcng_get_status, + "freebsd-8" => \&gst_service_rcng_get_status, + "freebsd-9" => \&gst_service_rcng_get_status, + "freebsd-10" => \&gst_service_rcng_get_status, ); my $proc; |