13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

20.5 Things That Make It Go455# descripti<strong>on</strong>: 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 functi<strong>on</strong> library.. /etc/init.d/functi<strong>on</strong>stest -x /usr/sbin/atd || exit 0RETVAL=0## See how we were called.#prog="atd"start() {# Check if atd is already runningif [ ! -f /var/lock/subsys/atd ]; thenecho -n $"Starting $prog: "daem<strong>on</strong> /usr/sbin/atdRETVAL=$?[ $RETVAL -eq 0 ] touch /var/lock/subsys/atdechofireturn $RETVAL}stop() {echo -n $"Stopping $prog: "killproc /usr/sbin/atdRETVAL=$?[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/atdechoreturn $RETVAL}restart() {stopstart}reload() {restart}

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!