title: Service starting failed - Failed to start SYSV
body: <p>My objective is to start a personal daemon called <code>gobatch</code>. <code>gobatch</code> is stored into <code>/usr/sbin/gobatch</code> (during <code>gobatch</code> is just an infinite loop).</p>
  
  <p>When I use <code>/etc/init.d/gobatch start</code> I got this error:</p>
  
  <blockquote>
    <p>janv. 08 14:39:03 ubuntu systemd[1]: Failed to start SYSV: ChilliSpot is an open source captive portal.</p>
  </blockquote>
  
  <p><strong>/usr/sbin/gobatch</strong></p>
  
  <pre><code>#! /bin/bash
  
  while true;
  do
  
  done
  </code></pre>
  
  <p><strong>/etc/init.d/gobatch:</strong></p>
  
  <pre><code>#!/bin/sh
  #### BEGIN INIT INFO 
  # Provides:          chillispot et freeradius dans le chroot 
  # Required-Start:    $local_fs $network 
  # Required-Stop:     $local_fs $remote_fs _
  # Default-Start:     2 3 4 5 
  # Default-Stop:      0 1 6 
  # Short-Description: Wireless &amp; LAN Access Point Controller 
  # Description:       ChilliSpot is an open source captive portal 
  #                    or wireless LAN access point controller. 
  ### END INIT INFO 
  
  
  PATH=/bin:/usr/bin:/sbin:/usr/sbin 
  DESC="Deamon that allows you to run cyclicaly at a date or a specific time a program" 
  NAME=gobatch 
  DEAMON=/usr/sbin/gobatch 
  PIDFILE=/var/run/$NAME.pid 
  SCRIPTNAME=/etc/init.d/"$NAME" 
  
  . /lib/lsb/init-functions 
  
  case "$1" in 
  start) log_daemon_msg "Starting gobatch" 
         start_daemon -p $PIDFILE $DAEMON 
         log_end_msg $? 
         ;; 
  stop) log_daemon_msg "Stopping gobatch" 
        killproc -p $PIDFILE $DAEMON 
        RETVAL=$? 
        [ $RETVAL -eq 0 ] &amp;&amp; [ -e "$PIDFILE" ] &amp;&amp; rm -f $PIDFILE 
        log_end_msg $RETVAL 
        ;; 
  restart) log_daemon_msg "Restarting gobatch" 
           $0 stop 
           $0 start 
           ;; 
  esac 
  exit 0
  </code></pre>
  
  <p>Can you help me to fix this problem?</p>
  
  <p>Thank's a lot!</p>