]> git.pld-linux.org Git - packages/at.git/commitdiff
entry ..
authorwojtek <wojtek@pld.org.pl>
Tue, 9 Feb 1999 11:46:34 +0000 (11:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    atd.init -> 1.1

atd.init [new file with mode: 0644]

diff --git a/atd.init b/atd.init
new file mode 100644 (file)
index 0000000..94ce01c
--- /dev/null
+++ b/atd.init
@@ -0,0 +1,46 @@
+#!/bin/bash
+#
+#      /etc/rc.d/init.d/atd
+#
+# Starts the at daemon
+#
+# chkconfig: 345 40 60
+# description: Runs commands scheduled by the at command at the time \
+#    specified when at was run, and runs batch commands when the load \
+#    average is low enough.
+# processname: atd
+
+# Source function library.
+. /etc/rc.d/init.d/functions
+
+test -x /usr/sbin/atd || exit 0
+#
+#      See how we were called.
+#
+case "$1" in
+  start)
+       # Check if atd is already running
+       if [ ! -f /var/lock/subsys/atd ]; then
+           show Starting at daemon
+           daemon atd
+           touch /var/lock/subsys/atd
+       fi
+       ;;
+  stop)
+       show Stopping at daemon
+       killproc atd
+       rm -f /var/lock/subsys/atd
+       ;;
+  reload|restart)
+       $0 stop
+       $0 start
+       ;;
+  status)
+       status atd
+       ;;
+  *)
+       echo "Usage: $0 {start|stop|restart|reload|status}"
+       exit 1
+esac
+
+exit 0
This page took 0.082501 seconds and 4 git commands to generate.