This file is indexed.

/usr/lib/ruby/vendor_ruby/specinfra/command/openbsd/v57/service.rb is in ruby-specinfra 2.66.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
class Specinfra::Command::Openbsd::V57::Service < Specinfra::Command::Openbsd::Base::Service
  class << self
    def check_is_enabled(service, level=nil)
      "rcctl get #{escape(service)} status"
    end

    def check_is_running(service)
      "rcctl check #{escape(service)}"
    end

    def enable(service)
      "rcctl set #{escape(service)} status on"
    end

    def disable(service)
      "rcctl set #{escape(service)} status off"
    end

    def start(service)
      "rcctl start #{escape(service)}"
    end

    def stop(service)
      "rcctl stop #{escape(service)}"
    end

    def restart(service)
      "rcctl restart #{escape(service)}"
    end

    def reload(service)
      "rcctl reload #{escape(service)}"
    end
  end
end