at/atd.init

112 lines
2.1 KiB
Plaintext
Raw Normal View History

#!/bin/sh
auto-import changelog data from at-3.1.8-12.src.rpm Wed Aug 23 2000 Crutcher Dunnavant <crutcher@redhat.com> - Well, we will likely never really close the UTC issues, - because of 1) fractional timezones, and 2) daylight savigns time. - but there is a slight tweak to the handling of dst in the UTC patch. Wed Aug 23 2000 Crutcher Dunnavant <crutcher@redhat.com> - fixed bug #15685 - which had at miscaluclating UTC times. Sat Jul 15 2000 Bill Nottingham <notting@redhat.com> - move initscript back Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Thu Jul 06 2000 Bill Nottingham <notting@redhat.com> - prereq /etc/init.d Sat Jul 01 2000 Nalin Dahyabhai <nalin@redhat.com> - fix syntax error in init script Tue Jun 27 2000 Preston Brown <pbrown@redhat.com> - don't prereq, only require initscripts Mon Jun 26 2000 Preston Brown <pbrown@redhat.com> - move init script - add condrestart directive - fix post/preun/postun scripts - prereq initscripts >= 5.20 Sat Jun 17 2000 Bill Nottingham <notting@redhat.com> - fix verify of /var/spool/at/.SEQ (#12262) Mon Jun 12 2000 Nalin Dahyabhai <nalin@redhat.com> - fix status checking and syntax error in init script Fri Jun 09 2000 Bill Nottingham <notting@redhat.com> - fix for long usernames (#11321) - add some bugfixes from debian Mon May 08 2000 Bernhard Rosenkraenzer <bero@redhat.com> - 3.1.8 Wed Mar 01 2000 Bill Nottingham <notting@redhat.com> - fix a couple of more typos, null-terminate some strings Thu Feb 10 2000 Bill Nottingham <notting@redhat.com> - fix many-years-old typo in atd.c Thu Feb 03 2000 Bill Nottingham <notting@redhat.com> - handle compressed man pages Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> - initscript munging, build as non-root user Sun Jun 13 1999 Jeff Johnson <jbj@redhat.com> - correct perms for /var/spool/at after defattr. Mon May 24 1999 Jeff Johnson <jbj@redhat.com> - reset SIGCHLD before exec (#3016). Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 8) Thu Mar 18 1999 Cristian Gafton <gafton@redhat.com> - fix handling the 12:00 time Wed Jan 13 1999 Bill Nottingham <notting@redhat.com> - configure fix for arm Wed Jan 06 1999 Cristian Gafton <gafton@redhat.com> - build for glibc 2.1 Tue May 05 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr Wed Apr 22 1998 Michael K. Johnson <johnsonm@redhat.com> - enhanced initscript Sun Nov 09 1997 Michael K. Johnson <johnsonm@redhat.com> - learned to spell Wed Oct 22 1997 Michael K. Johnson <johnsonm@redhat.com> - updated to at version 3.1.7 - updated lock and sequence file handling with %ghost - Use chkconfig and atd, now conflicts with old crontabs packages Thu Jun 19 1997 Erik Troan <ewt@redhat.com> - built against glibc
2004-09-09 03:14:09 +00:00
#
# atd Starts/stop the "at" daemon
auto-import changelog data from at-3.1.8-12.src.rpm Wed Aug 23 2000 Crutcher Dunnavant <crutcher@redhat.com> - Well, we will likely never really close the UTC issues, - because of 1) fractional timezones, and 2) daylight savigns time. - but there is a slight tweak to the handling of dst in the UTC patch. Wed Aug 23 2000 Crutcher Dunnavant <crutcher@redhat.com> - fixed bug #15685 - which had at miscaluclating UTC times. Sat Jul 15 2000 Bill Nottingham <notting@redhat.com> - move initscript back Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Thu Jul 06 2000 Bill Nottingham <notting@redhat.com> - prereq /etc/init.d Sat Jul 01 2000 Nalin Dahyabhai <nalin@redhat.com> - fix syntax error in init script Tue Jun 27 2000 Preston Brown <pbrown@redhat.com> - don't prereq, only require initscripts Mon Jun 26 2000 Preston Brown <pbrown@redhat.com> - move init script - add condrestart directive - fix post/preun/postun scripts - prereq initscripts >= 5.20 Sat Jun 17 2000 Bill Nottingham <notting@redhat.com> - fix verify of /var/spool/at/.SEQ (#12262) Mon Jun 12 2000 Nalin Dahyabhai <nalin@redhat.com> - fix status checking and syntax error in init script Fri Jun 09 2000 Bill Nottingham <notting@redhat.com> - fix for long usernames (#11321) - add some bugfixes from debian Mon May 08 2000 Bernhard Rosenkraenzer <bero@redhat.com> - 3.1.8 Wed Mar 01 2000 Bill Nottingham <notting@redhat.com> - fix a couple of more typos, null-terminate some strings Thu Feb 10 2000 Bill Nottingham <notting@redhat.com> - fix many-years-old typo in atd.c Thu Feb 03 2000 Bill Nottingham <notting@redhat.com> - handle compressed man pages Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> - initscript munging, build as non-root user Sun Jun 13 1999 Jeff Johnson <jbj@redhat.com> - correct perms for /var/spool/at after defattr. Mon May 24 1999 Jeff Johnson <jbj@redhat.com> - reset SIGCHLD before exec (#3016). Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 8) Thu Mar 18 1999 Cristian Gafton <gafton@redhat.com> - fix handling the 12:00 time Wed Jan 13 1999 Bill Nottingham <notting@redhat.com> - configure fix for arm Wed Jan 06 1999 Cristian Gafton <gafton@redhat.com> - build for glibc 2.1 Tue May 05 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr Wed Apr 22 1998 Michael K. Johnson <johnsonm@redhat.com> - enhanced initscript Sun Nov 09 1997 Michael K. Johnson <johnsonm@redhat.com> - learned to spell Wed Oct 22 1997 Michael K. Johnson <johnsonm@redhat.com> - updated to at version 3.1.7 - updated lock and sequence file handling with %ghost - Use chkconfig and atd, now conflicts with old crontabs packages Thu Jun 19 1997 Erik Troan <ewt@redhat.com> - built against glibc
2004-09-09 03:14:09 +00:00
#
# chkconfig: 345 95 5
# description: Runs commands scheduled by the "at" command at the time \
# specified when "at" was run, and runs batch commands when the load \
auto-import changelog data from at-3.1.8-12.src.rpm Wed Aug 23 2000 Crutcher Dunnavant <crutcher@redhat.com> - Well, we will likely never really close the UTC issues, - because of 1) fractional timezones, and 2) daylight savigns time. - but there is a slight tweak to the handling of dst in the UTC patch. Wed Aug 23 2000 Crutcher Dunnavant <crutcher@redhat.com> - fixed bug #15685 - which had at miscaluclating UTC times. Sat Jul 15 2000 Bill Nottingham <notting@redhat.com> - move initscript back Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Thu Jul 06 2000 Bill Nottingham <notting@redhat.com> - prereq /etc/init.d Sat Jul 01 2000 Nalin Dahyabhai <nalin@redhat.com> - fix syntax error in init script Tue Jun 27 2000 Preston Brown <pbrown@redhat.com> - don't prereq, only require initscripts Mon Jun 26 2000 Preston Brown <pbrown@redhat.com> - move init script - add condrestart directive - fix post/preun/postun scripts - prereq initscripts >= 5.20 Sat Jun 17 2000 Bill Nottingham <notting@redhat.com> - fix verify of /var/spool/at/.SEQ (#12262) Mon Jun 12 2000 Nalin Dahyabhai <nalin@redhat.com> - fix status checking and syntax error in init script Fri Jun 09 2000 Bill Nottingham <notting@redhat.com> - fix for long usernames (#11321) - add some bugfixes from debian Mon May 08 2000 Bernhard Rosenkraenzer <bero@redhat.com> - 3.1.8 Wed Mar 01 2000 Bill Nottingham <notting@redhat.com> - fix a couple of more typos, null-terminate some strings Thu Feb 10 2000 Bill Nottingham <notting@redhat.com> - fix many-years-old typo in atd.c Thu Feb 03 2000 Bill Nottingham <notting@redhat.com> - handle compressed man pages Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> - initscript munging, build as non-root user Sun Jun 13 1999 Jeff Johnson <jbj@redhat.com> - correct perms for /var/spool/at after defattr. Mon May 24 1999 Jeff Johnson <jbj@redhat.com> - reset SIGCHLD before exec (#3016). Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 8) Thu Mar 18 1999 Cristian Gafton <gafton@redhat.com> - fix handling the 12:00 time Wed Jan 13 1999 Bill Nottingham <notting@redhat.com> - configure fix for arm Wed Jan 06 1999 Cristian Gafton <gafton@redhat.com> - build for glibc 2.1 Tue May 05 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr Wed Apr 22 1998 Michael K. Johnson <johnsonm@redhat.com> - enhanced initscript Sun Nov 09 1997 Michael K. Johnson <johnsonm@redhat.com> - learned to spell Wed Oct 22 1997 Michael K. Johnson <johnsonm@redhat.com> - updated to at version 3.1.7 - updated lock and sequence file handling with %ghost - Use chkconfig and atd, now conflicts with old crontabs packages Thu Jun 19 1997 Erik Troan <ewt@redhat.com> - built against glibc
2004-09-09 03:14:09 +00:00
# average is low enough.
### BEGIN INIT INFO
# Provides: atd at batch
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 345
# Default-Stop: 95
# Short-Description: Starts/stop the "at" daemon
# 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.
### END INIT INFO
auto-import changelog data from at-3.1.8-12.src.rpm Wed Aug 23 2000 Crutcher Dunnavant <crutcher@redhat.com> - Well, we will likely never really close the UTC issues, - because of 1) fractional timezones, and 2) daylight savigns time. - but there is a slight tweak to the handling of dst in the UTC patch. Wed Aug 23 2000 Crutcher Dunnavant <crutcher@redhat.com> - fixed bug #15685 - which had at miscaluclating UTC times. Sat Jul 15 2000 Bill Nottingham <notting@redhat.com> - move initscript back Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Thu Jul 06 2000 Bill Nottingham <notting@redhat.com> - prereq /etc/init.d Sat Jul 01 2000 Nalin Dahyabhai <nalin@redhat.com> - fix syntax error in init script Tue Jun 27 2000 Preston Brown <pbrown@redhat.com> - don't prereq, only require initscripts Mon Jun 26 2000 Preston Brown <pbrown@redhat.com> - move init script - add condrestart directive - fix post/preun/postun scripts - prereq initscripts >= 5.20 Sat Jun 17 2000 Bill Nottingham <notting@redhat.com> - fix verify of /var/spool/at/.SEQ (#12262) Mon Jun 12 2000 Nalin Dahyabhai <nalin@redhat.com> - fix status checking and syntax error in init script Fri Jun 09 2000 Bill Nottingham <notting@redhat.com> - fix for long usernames (#11321) - add some bugfixes from debian Mon May 08 2000 Bernhard Rosenkraenzer <bero@redhat.com> - 3.1.8 Wed Mar 01 2000 Bill Nottingham <notting@redhat.com> - fix a couple of more typos, null-terminate some strings Thu Feb 10 2000 Bill Nottingham <notting@redhat.com> - fix many-years-old typo in atd.c Thu Feb 03 2000 Bill Nottingham <notting@redhat.com> - handle compressed man pages Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> - initscript munging, build as non-root user Sun Jun 13 1999 Jeff Johnson <jbj@redhat.com> - correct perms for /var/spool/at after defattr. Mon May 24 1999 Jeff Johnson <jbj@redhat.com> - reset SIGCHLD before exec (#3016). Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 8) Thu Mar 18 1999 Cristian Gafton <gafton@redhat.com> - fix handling the 12:00 time Wed Jan 13 1999 Bill Nottingham <notting@redhat.com> - configure fix for arm Wed Jan 06 1999 Cristian Gafton <gafton@redhat.com> - build for glibc 2.1 Tue May 05 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr Wed Apr 22 1998 Michael K. Johnson <johnsonm@redhat.com> - enhanced initscript Sun Nov 09 1997 Michael K. Johnson <johnsonm@redhat.com> - learned to spell Wed Oct 22 1997 Michael K. Johnson <johnsonm@redhat.com> - updated to at version 3.1.7 - updated lock and sequence file handling with %ghost - Use chkconfig and atd, now conflicts with old crontabs packages Thu Jun 19 1997 Erik Troan <ewt@redhat.com> - built against glibc
2004-09-09 03:14:09 +00:00
# Source function library.
. /etc/rc.d/init.d/functions
auto-import changelog data from at-3.1.8-12.src.rpm Wed Aug 23 2000 Crutcher Dunnavant <crutcher@redhat.com> - Well, we will likely never really close the UTC issues, - because of 1) fractional timezones, and 2) daylight savigns time. - but there is a slight tweak to the handling of dst in the UTC patch. Wed Aug 23 2000 Crutcher Dunnavant <crutcher@redhat.com> - fixed bug #15685 - which had at miscaluclating UTC times. Sat Jul 15 2000 Bill Nottingham <notting@redhat.com> - move initscript back Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Thu Jul 06 2000 Bill Nottingham <notting@redhat.com> - prereq /etc/init.d Sat Jul 01 2000 Nalin Dahyabhai <nalin@redhat.com> - fix syntax error in init script Tue Jun 27 2000 Preston Brown <pbrown@redhat.com> - don't prereq, only require initscripts Mon Jun 26 2000 Preston Brown <pbrown@redhat.com> - move init script - add condrestart directive - fix post/preun/postun scripts - prereq initscripts >= 5.20 Sat Jun 17 2000 Bill Nottingham <notting@redhat.com> - fix verify of /var/spool/at/.SEQ (#12262) Mon Jun 12 2000 Nalin Dahyabhai <nalin@redhat.com> - fix status checking and syntax error in init script Fri Jun 09 2000 Bill Nottingham <notting@redhat.com> - fix for long usernames (#11321) - add some bugfixes from debian Mon May 08 2000 Bernhard Rosenkraenzer <bero@redhat.com> - 3.1.8 Wed Mar 01 2000 Bill Nottingham <notting@redhat.com> - fix a couple of more typos, null-terminate some strings Thu Feb 10 2000 Bill Nottingham <notting@redhat.com> - fix many-years-old typo in atd.c Thu Feb 03 2000 Bill Nottingham <notting@redhat.com> - handle compressed man pages Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> - initscript munging, build as non-root user Sun Jun 13 1999 Jeff Johnson <jbj@redhat.com> - correct perms for /var/spool/at after defattr. Mon May 24 1999 Jeff Johnson <jbj@redhat.com> - reset SIGCHLD before exec (#3016). Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 8) Thu Mar 18 1999 Cristian Gafton <gafton@redhat.com> - fix handling the 12:00 time Wed Jan 13 1999 Bill Nottingham <notting@redhat.com> - configure fix for arm Wed Jan 06 1999 Cristian Gafton <gafton@redhat.com> - build for glibc 2.1 Tue May 05 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr Wed Apr 22 1998 Michael K. Johnson <johnsonm@redhat.com> - enhanced initscript Sun Nov 09 1997 Michael K. Johnson <johnsonm@redhat.com> - learned to spell Wed Oct 22 1997 Michael K. Johnson <johnsonm@redhat.com> - updated to at version 3.1.7 - updated lock and sequence file handling with %ghost - Use chkconfig and atd, now conflicts with old crontabs packages Thu Jun 19 1997 Erik Troan <ewt@redhat.com> - built against glibc
2004-09-09 03:14:09 +00:00
exec=/usr/sbin/atd
2007-07-09 13:56:09 +00:00
prog="atd"
config=/etc/sysconfig/atd
[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
lockfile=/var/lock/subsys/$prog
auto-import changelog data from at-3.1.8-12.src.rpm Wed Aug 23 2000 Crutcher Dunnavant <crutcher@redhat.com> - Well, we will likely never really close the UTC issues, - because of 1) fractional timezones, and 2) daylight savigns time. - but there is a slight tweak to the handling of dst in the UTC patch. Wed Aug 23 2000 Crutcher Dunnavant <crutcher@redhat.com> - fixed bug #15685 - which had at miscaluclating UTC times. Sat Jul 15 2000 Bill Nottingham <notting@redhat.com> - move initscript back Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Thu Jul 06 2000 Bill Nottingham <notting@redhat.com> - prereq /etc/init.d Sat Jul 01 2000 Nalin Dahyabhai <nalin@redhat.com> - fix syntax error in init script Tue Jun 27 2000 Preston Brown <pbrown@redhat.com> - don't prereq, only require initscripts Mon Jun 26 2000 Preston Brown <pbrown@redhat.com> - move init script - add condrestart directive - fix post/preun/postun scripts - prereq initscripts >= 5.20 Sat Jun 17 2000 Bill Nottingham <notting@redhat.com> - fix verify of /var/spool/at/.SEQ (#12262) Mon Jun 12 2000 Nalin Dahyabhai <nalin@redhat.com> - fix status checking and syntax error in init script Fri Jun 09 2000 Bill Nottingham <notting@redhat.com> - fix for long usernames (#11321) - add some bugfixes from debian Mon May 08 2000 Bernhard Rosenkraenzer <bero@redhat.com> - 3.1.8 Wed Mar 01 2000 Bill Nottingham <notting@redhat.com> - fix a couple of more typos, null-terminate some strings Thu Feb 10 2000 Bill Nottingham <notting@redhat.com> - fix many-years-old typo in atd.c Thu Feb 03 2000 Bill Nottingham <notting@redhat.com> - handle compressed man pages Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> - initscript munging, build as non-root user Sun Jun 13 1999 Jeff Johnson <jbj@redhat.com> - correct perms for /var/spool/at after defattr. Mon May 24 1999 Jeff Johnson <jbj@redhat.com> - reset SIGCHLD before exec (#3016). Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 8) Thu Mar 18 1999 Cristian Gafton <gafton@redhat.com> - fix handling the 12:00 time Wed Jan 13 1999 Bill Nottingham <notting@redhat.com> - configure fix for arm Wed Jan 06 1999 Cristian Gafton <gafton@redhat.com> - build for glibc 2.1 Tue May 05 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr Wed Apr 22 1998 Michael K. Johnson <johnsonm@redhat.com> - enhanced initscript Sun Nov 09 1997 Michael K. Johnson <johnsonm@redhat.com> - learned to spell Wed Oct 22 1997 Michael K. Johnson <johnsonm@redhat.com> - updated to at version 3.1.7 - updated lock and sequence file handling with %ghost - Use chkconfig and atd, now conflicts with old crontabs packages Thu Jun 19 1997 Erik Troan <ewt@redhat.com> - built against glibc
2004-09-09 03:14:09 +00:00
start() {
[ -x $exec ] || exit 5
[ -f $config ] || exit 6
echo -n $"Starting $prog: "
2010-11-30 12:28:14 +00:00
daemon $exec $OPTS && success || failure
retval=$?
echo
[ $retval -eq 0 ] && touch $lockfile
2010-11-30 12:28:14 +00:00
return $retval
auto-import changelog data from at-3.1.8-12.src.rpm Wed Aug 23 2000 Crutcher Dunnavant <crutcher@redhat.com> - Well, we will likely never really close the UTC issues, - because of 1) fractional timezones, and 2) daylight savigns time. - but there is a slight tweak to the handling of dst in the UTC patch. Wed Aug 23 2000 Crutcher Dunnavant <crutcher@redhat.com> - fixed bug #15685 - which had at miscaluclating UTC times. Sat Jul 15 2000 Bill Nottingham <notting@redhat.com> - move initscript back Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Thu Jul 06 2000 Bill Nottingham <notting@redhat.com> - prereq /etc/init.d Sat Jul 01 2000 Nalin Dahyabhai <nalin@redhat.com> - fix syntax error in init script Tue Jun 27 2000 Preston Brown <pbrown@redhat.com> - don't prereq, only require initscripts Mon Jun 26 2000 Preston Brown <pbrown@redhat.com> - move init script - add condrestart directive - fix post/preun/postun scripts - prereq initscripts >= 5.20 Sat Jun 17 2000 Bill Nottingham <notting@redhat.com> - fix verify of /var/spool/at/.SEQ (#12262) Mon Jun 12 2000 Nalin Dahyabhai <nalin@redhat.com> - fix status checking and syntax error in init script Fri Jun 09 2000 Bill Nottingham <notting@redhat.com> - fix for long usernames (#11321) - add some bugfixes from debian Mon May 08 2000 Bernhard Rosenkraenzer <bero@redhat.com> - 3.1.8 Wed Mar 01 2000 Bill Nottingham <notting@redhat.com> - fix a couple of more typos, null-terminate some strings Thu Feb 10 2000 Bill Nottingham <notting@redhat.com> - fix many-years-old typo in atd.c Thu Feb 03 2000 Bill Nottingham <notting@redhat.com> - handle compressed man pages Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> - initscript munging, build as non-root user Sun Jun 13 1999 Jeff Johnson <jbj@redhat.com> - correct perms for /var/spool/at after defattr. Mon May 24 1999 Jeff Johnson <jbj@redhat.com> - reset SIGCHLD before exec (#3016). Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 8) Thu Mar 18 1999 Cristian Gafton <gafton@redhat.com> - fix handling the 12:00 time Wed Jan 13 1999 Bill Nottingham <notting@redhat.com> - configure fix for arm Wed Jan 06 1999 Cristian Gafton <gafton@redhat.com> - build for glibc 2.1 Tue May 05 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr Wed Apr 22 1998 Michael K. Johnson <johnsonm@redhat.com> - enhanced initscript Sun Nov 09 1997 Michael K. Johnson <johnsonm@redhat.com> - learned to spell Wed Oct 22 1997 Michael K. Johnson <johnsonm@redhat.com> - updated to at version 3.1.7 - updated lock and sequence file handling with %ghost - Use chkconfig and atd, now conflicts with old crontabs packages Thu Jun 19 1997 Erik Troan <ewt@redhat.com> - built against glibc
2004-09-09 03:14:09 +00:00
}
stop() {
echo -n $"Stopping $prog: "
if [ -n "`pidfileofproc $exec`" ] ; then
killproc $exec
RETVAL=3
2007-07-12 11:21:21 +00:00
else
failure $"Stopping $prog"
fi
retval=$?
2007-07-12 11:21:21 +00:00
echo
[ $retval -eq 0 ] && rm -f $lockfile
2010-11-30 12:28:14 +00:00
return $retval
auto-import changelog data from at-3.1.8-12.src.rpm Wed Aug 23 2000 Crutcher Dunnavant <crutcher@redhat.com> - Well, we will likely never really close the UTC issues, - because of 1) fractional timezones, and 2) daylight savigns time. - but there is a slight tweak to the handling of dst in the UTC patch. Wed Aug 23 2000 Crutcher Dunnavant <crutcher@redhat.com> - fixed bug #15685 - which had at miscaluclating UTC times. Sat Jul 15 2000 Bill Nottingham <notting@redhat.com> - move initscript back Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Thu Jul 06 2000 Bill Nottingham <notting@redhat.com> - prereq /etc/init.d Sat Jul 01 2000 Nalin Dahyabhai <nalin@redhat.com> - fix syntax error in init script Tue Jun 27 2000 Preston Brown <pbrown@redhat.com> - don't prereq, only require initscripts Mon Jun 26 2000 Preston Brown <pbrown@redhat.com> - move init script - add condrestart directive - fix post/preun/postun scripts - prereq initscripts >= 5.20 Sat Jun 17 2000 Bill Nottingham <notting@redhat.com> - fix verify of /var/spool/at/.SEQ (#12262) Mon Jun 12 2000 Nalin Dahyabhai <nalin@redhat.com> - fix status checking and syntax error in init script Fri Jun 09 2000 Bill Nottingham <notting@redhat.com> - fix for long usernames (#11321) - add some bugfixes from debian Mon May 08 2000 Bernhard Rosenkraenzer <bero@redhat.com> - 3.1.8 Wed Mar 01 2000 Bill Nottingham <notting@redhat.com> - fix a couple of more typos, null-terminate some strings Thu Feb 10 2000 Bill Nottingham <notting@redhat.com> - fix many-years-old typo in atd.c Thu Feb 03 2000 Bill Nottingham <notting@redhat.com> - handle compressed man pages Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> - initscript munging, build as non-root user Sun Jun 13 1999 Jeff Johnson <jbj@redhat.com> - correct perms for /var/spool/at after defattr. Mon May 24 1999 Jeff Johnson <jbj@redhat.com> - reset SIGCHLD before exec (#3016). Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 8) Thu Mar 18 1999 Cristian Gafton <gafton@redhat.com> - fix handling the 12:00 time Wed Jan 13 1999 Bill Nottingham <notting@redhat.com> - configure fix for arm Wed Jan 06 1999 Cristian Gafton <gafton@redhat.com> - build for glibc 2.1 Tue May 05 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr Wed Apr 22 1998 Michael K. Johnson <johnsonm@redhat.com> - enhanced initscript Sun Nov 09 1997 Michael K. Johnson <johnsonm@redhat.com> - learned to spell Wed Oct 22 1997 Michael K. Johnson <johnsonm@redhat.com> - updated to at version 3.1.7 - updated lock and sequence file handling with %ghost - Use chkconfig and atd, now conflicts with old crontabs packages Thu Jun 19 1997 Erik Troan <ewt@redhat.com> - built against glibc
2004-09-09 03:14:09 +00:00
}
restart() {
stop
start
}
auto-import changelog data from at-3.1.8-12.src.rpm Wed Aug 23 2000 Crutcher Dunnavant <crutcher@redhat.com> - Well, we will likely never really close the UTC issues, - because of 1) fractional timezones, and 2) daylight savigns time. - but there is a slight tweak to the handling of dst in the UTC patch. Wed Aug 23 2000 Crutcher Dunnavant <crutcher@redhat.com> - fixed bug #15685 - which had at miscaluclating UTC times. Sat Jul 15 2000 Bill Nottingham <notting@redhat.com> - move initscript back Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Thu Jul 06 2000 Bill Nottingham <notting@redhat.com> - prereq /etc/init.d Sat Jul 01 2000 Nalin Dahyabhai <nalin@redhat.com> - fix syntax error in init script Tue Jun 27 2000 Preston Brown <pbrown@redhat.com> - don't prereq, only require initscripts Mon Jun 26 2000 Preston Brown <pbrown@redhat.com> - move init script - add condrestart directive - fix post/preun/postun scripts - prereq initscripts >= 5.20 Sat Jun 17 2000 Bill Nottingham <notting@redhat.com> - fix verify of /var/spool/at/.SEQ (#12262) Mon Jun 12 2000 Nalin Dahyabhai <nalin@redhat.com> - fix status checking and syntax error in init script Fri Jun 09 2000 Bill Nottingham <notting@redhat.com> - fix for long usernames (#11321) - add some bugfixes from debian Mon May 08 2000 Bernhard Rosenkraenzer <bero@redhat.com> - 3.1.8 Wed Mar 01 2000 Bill Nottingham <notting@redhat.com> - fix a couple of more typos, null-terminate some strings Thu Feb 10 2000 Bill Nottingham <notting@redhat.com> - fix many-years-old typo in atd.c Thu Feb 03 2000 Bill Nottingham <notting@redhat.com> - handle compressed man pages Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> - initscript munging, build as non-root user Sun Jun 13 1999 Jeff Johnson <jbj@redhat.com> - correct perms for /var/spool/at after defattr. Mon May 24 1999 Jeff Johnson <jbj@redhat.com> - reset SIGCHLD before exec (#3016). Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 8) Thu Mar 18 1999 Cristian Gafton <gafton@redhat.com> - fix handling the 12:00 time Wed Jan 13 1999 Bill Nottingham <notting@redhat.com> - configure fix for arm Wed Jan 06 1999 Cristian Gafton <gafton@redhat.com> - build for glibc 2.1 Tue May 05 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr Wed Apr 22 1998 Michael K. Johnson <johnsonm@redhat.com> - enhanced initscript Sun Nov 09 1997 Michael K. Johnson <johnsonm@redhat.com> - learned to spell Wed Oct 22 1997 Michael K. Johnson <johnsonm@redhat.com> - updated to at version 3.1.7 - updated lock and sequence file handling with %ghost - Use chkconfig and atd, now conflicts with old crontabs packages Thu Jun 19 1997 Erik Troan <ewt@redhat.com> - built against glibc
2004-09-09 03:14:09 +00:00
reload() {
restart
}
force_reload() {
restart
}
rh_status() {
# run checks to determine if the service is running or use generic status
status $prog
}
rh_status_q() {
rh_status >/dev/null 2>&1
}
auto-import changelog data from at-3.1.8-12.src.rpm Wed Aug 23 2000 Crutcher Dunnavant <crutcher@redhat.com> - Well, we will likely never really close the UTC issues, - because of 1) fractional timezones, and 2) daylight savigns time. - but there is a slight tweak to the handling of dst in the UTC patch. Wed Aug 23 2000 Crutcher Dunnavant <crutcher@redhat.com> - fixed bug #15685 - which had at miscaluclating UTC times. Sat Jul 15 2000 Bill Nottingham <notting@redhat.com> - move initscript back Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Thu Jul 06 2000 Bill Nottingham <notting@redhat.com> - prereq /etc/init.d Sat Jul 01 2000 Nalin Dahyabhai <nalin@redhat.com> - fix syntax error in init script Tue Jun 27 2000 Preston Brown <pbrown@redhat.com> - don't prereq, only require initscripts Mon Jun 26 2000 Preston Brown <pbrown@redhat.com> - move init script - add condrestart directive - fix post/preun/postun scripts - prereq initscripts >= 5.20 Sat Jun 17 2000 Bill Nottingham <notting@redhat.com> - fix verify of /var/spool/at/.SEQ (#12262) Mon Jun 12 2000 Nalin Dahyabhai <nalin@redhat.com> - fix status checking and syntax error in init script Fri Jun 09 2000 Bill Nottingham <notting@redhat.com> - fix for long usernames (#11321) - add some bugfixes from debian Mon May 08 2000 Bernhard Rosenkraenzer <bero@redhat.com> - 3.1.8 Wed Mar 01 2000 Bill Nottingham <notting@redhat.com> - fix a couple of more typos, null-terminate some strings Thu Feb 10 2000 Bill Nottingham <notting@redhat.com> - fix many-years-old typo in atd.c Thu Feb 03 2000 Bill Nottingham <notting@redhat.com> - handle compressed man pages Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> - initscript munging, build as non-root user Sun Jun 13 1999 Jeff Johnson <jbj@redhat.com> - correct perms for /var/spool/at after defattr. Mon May 24 1999 Jeff Johnson <jbj@redhat.com> - reset SIGCHLD before exec (#3016). Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 8) Thu Mar 18 1999 Cristian Gafton <gafton@redhat.com> - fix handling the 12:00 time Wed Jan 13 1999 Bill Nottingham <notting@redhat.com> - configure fix for arm Wed Jan 06 1999 Cristian Gafton <gafton@redhat.com> - build for glibc 2.1 Tue May 05 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr Wed Apr 22 1998 Michael K. Johnson <johnsonm@redhat.com> - enhanced initscript Sun Nov 09 1997 Michael K. Johnson <johnsonm@redhat.com> - learned to spell Wed Oct 22 1997 Michael K. Johnson <johnsonm@redhat.com> - updated to at version 3.1.7 - updated lock and sequence file handling with %ghost - Use chkconfig and atd, now conflicts with old crontabs packages Thu Jun 19 1997 Erik Troan <ewt@redhat.com> - built against glibc
2004-09-09 03:14:09 +00:00
case "$1" in
start)
rh_status_q && exit 0
$1
;;
stop)
rh_status_q || exit 0
$1
;;
restart)
$1
;;
reload)
rh_status_q || exit 7
$1
;;
force-reload)
force_reload
;;
status)
rh_status
;;
condrestart|try-restart)
rh_status_q || exit 0
restart
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
exit 2
auto-import changelog data from at-3.1.8-12.src.rpm Wed Aug 23 2000 Crutcher Dunnavant <crutcher@redhat.com> - Well, we will likely never really close the UTC issues, - because of 1) fractional timezones, and 2) daylight savigns time. - but there is a slight tweak to the handling of dst in the UTC patch. Wed Aug 23 2000 Crutcher Dunnavant <crutcher@redhat.com> - fixed bug #15685 - which had at miscaluclating UTC times. Sat Jul 15 2000 Bill Nottingham <notting@redhat.com> - move initscript back Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Thu Jul 06 2000 Bill Nottingham <notting@redhat.com> - prereq /etc/init.d Sat Jul 01 2000 Nalin Dahyabhai <nalin@redhat.com> - fix syntax error in init script Tue Jun 27 2000 Preston Brown <pbrown@redhat.com> - don't prereq, only require initscripts Mon Jun 26 2000 Preston Brown <pbrown@redhat.com> - move init script - add condrestart directive - fix post/preun/postun scripts - prereq initscripts >= 5.20 Sat Jun 17 2000 Bill Nottingham <notting@redhat.com> - fix verify of /var/spool/at/.SEQ (#12262) Mon Jun 12 2000 Nalin Dahyabhai <nalin@redhat.com> - fix status checking and syntax error in init script Fri Jun 09 2000 Bill Nottingham <notting@redhat.com> - fix for long usernames (#11321) - add some bugfixes from debian Mon May 08 2000 Bernhard Rosenkraenzer <bero@redhat.com> - 3.1.8 Wed Mar 01 2000 Bill Nottingham <notting@redhat.com> - fix a couple of more typos, null-terminate some strings Thu Feb 10 2000 Bill Nottingham <notting@redhat.com> - fix many-years-old typo in atd.c Thu Feb 03 2000 Bill Nottingham <notting@redhat.com> - handle compressed man pages Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> - initscript munging, build as non-root user Sun Jun 13 1999 Jeff Johnson <jbj@redhat.com> - correct perms for /var/spool/at after defattr. Mon May 24 1999 Jeff Johnson <jbj@redhat.com> - reset SIGCHLD before exec (#3016). Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 8) Thu Mar 18 1999 Cristian Gafton <gafton@redhat.com> - fix handling the 12:00 time Wed Jan 13 1999 Bill Nottingham <notting@redhat.com> - configure fix for arm Wed Jan 06 1999 Cristian Gafton <gafton@redhat.com> - build for glibc 2.1 Tue May 05 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr Wed Apr 22 1998 Michael K. Johnson <johnsonm@redhat.com> - enhanced initscript Sun Nov 09 1997 Michael K. Johnson <johnsonm@redhat.com> - learned to spell Wed Oct 22 1997 Michael K. Johnson <johnsonm@redhat.com> - updated to at version 3.1.7 - updated lock and sequence file handling with %ghost - Use chkconfig and atd, now conflicts with old crontabs packages Thu Jun 19 1997 Erik Troan <ewt@redhat.com> - built against glibc
2004-09-09 03:14:09 +00:00
esac
exit $?