incrond 375 Bytes
Newer Older
1
#!/usr/bin/ruby
Patrick J Cherry's avatar
Patrick J Cherry committed
2
3
4
#
require 'symbiosis/monitor/check'

telyn's avatar
telyn committed
5
# ensure that Incrond is running
Patrick J Cherry's avatar
Patrick J Cherry committed
6
7
class IncrondCheck < Symbiosis::Monitor::Check
  def initialize
telyn's avatar
telyn committed
8
9
    super pid_file: '/var/run/incrond.pid',
          init_script: '/etc/init.d/incron',
telyn's avatar
telyn committed
10
11
          unit_name: 'incron',
          process_name: 'incrond'
Patrick J Cherry's avatar
Patrick J Cherry committed
12
13
14
  end
end

telyn's avatar
telyn committed
15
exit IncrondCheck.new.do_check if $PROGRAM_NAME == __FILE__