Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

Someone
Wednesday, October 31st, 2007 at 6:54:03am UTC 

  1. #! /bin/sh -e
  2. #### BEGIN INIT INFO
  3. # Provides:          atd
  4. # Required-Start:    $syslog $time $local_fs $remote_fs
  5. # Required-Stop:     $syslog $time $local_fs $remote_fs
  6. # Default-Start:     2 3 4 5
  7. # Default-Stop:      S 0 1 6
  8. # Short-Description: Deferred execution scheduler
  9. # Description:       Debian init script for the atd deferred executions
  10. #                    scheduler
  11. ### END INIT INFO
  12. #
  13. # Author:       Ryan Murray <[email protected]>
  14. #
  15. set -e
  16.  
  17. PATH=/bin:/usr/bin:/sbin:/usr/sbin
  18. DAEMON=/usr/sbin/atd
  19.  
  20. test -x $DAEMON || exit 0
  21.  
  22. . /lib/lsb/init-functions
  23.  
  24. case "$1" in
  25.     start)
  26.         log_daemon_msg "Starting deferred execution scheduler" "atd"
  27.         start_daemon $DAEMON
  28.         log_end_msg $?
  29.     ;;
  30.   stop)
  31.         log_daemon_msg "Stopping deferred execution scheduler" "atd"
  32.         killproc $DAEMON
  33.         log_end_msg $?
  34.     ;;
  35.   force-reload|restart)
  36.     $0 stop
  37.     $0 start
  38.     ;;
  39.   *)
  40.     echo "Usage: /etc/init.d/atd {start|stop|restart|force-reload}"
  41.     exit 1
  42.     ;;
  43. esac
  44.  
  45. exit 0

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right