Loading

/etc/init.d/skeleton

  1. #!/bin/sh
  2. # kFreeBSD do not accept scripts as interpreters, using #!/bin/sh and sourcing.
  3. if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then
  4.     set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script
  5. fi
  6. ### BEGIN INIT INFO
  7. # Provides:          skeleton
  8. # Required-Start:    $remote_fs $syslog
  9. # Required-Stop:     $remote_fs $syslog
  10. # Default-Start:     2 3 4 5
  11. # Default-Stop:      0 1 6
  12. # Short-Description: Example initscript
  13. # Description:       This file should be used to construct scripts to be
  14. #                    placed in /etc/init.d.  This example start a
  15. #                    single forking daemon capable of writing a pid
  16. #                    file.  To get other behavoirs, implemend
  17. #                    do_start(), do_stop() or other functions to
  18. #                    override the defaults in /lib/init/init-d-script.
  19. ### END INIT INFO
  20.  
  21. # Author: Foo Bar <foobar@baz.org>
  22. #
  23. # Please remove the "Author" lines above and replace them
  24. # with your own name if you copy and modify this script.
  25.  
  26. DESC="Description of the service"
  27. DAEMON=/usr/sbin/daemonexecutablename

Comments