runit

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

runit (332B)


      1 #!/bin/sh
      2 
      3 ##
      4 # runit
      5 ##
      6 
      7 . /etc/rc.common
      8 
      9 StartService() {
     10   ConsoleMessage "Starting runit service supervision"
     11   /bin/csh -cf '/sbin/runsvdir-start &'
     12 }
     13 StopService() {
     14   ConsoleMessage "Stopping runit service supervision"
     15   sv -w196 force-stop /service/*
     16   sv exit /service/*
     17 }
     18 RestartService() {
     19   return 0
     20 }
     21 
     22 RunService "$1"