#! /bin/sh #---------------------------------------------------------------------------- # /etc/init.d/atd - rc script for atd # # Creation: 06.02.2005 ansgar # Last Update: $Id$ # # Copyright (c) 2005 Frank Meyer # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- # include eislib . /var/install/include/eislib base_config=/etc/config.d/base . $base_config case $1 in start) if [ "$START_ATD" = 'yes' ]; then if tty -s; then mecho -info "starting atd ..." fi /usr/sbin/atd & fi ;; stop) if [ -f /var/run/atd.pid ]; then if tty -s; then mecho -info "shutting down atd ..." fi fi killproc /usr/sbin/atd ;; esac