summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2002-03-24 08:31:02 +0000
committerMartin Schlemmer <azarah@gentoo.org>2002-03-24 08:31:02 +0000
commitfaac0269905cf143f96d78c1d7f75fc707807a23 (patch)
tree35909b9e33268ac442000b2ad277f0deb64c7cb7 /sys-apps/at
parentman pages moved to /usr/share/man (diff)
downloadgentoo-2-faac0269905cf143f96d78c1d7f75fc707807a23.tar.gz
gentoo-2-faac0269905cf143f96d78c1d7f75fc707807a23.tar.bz2
gentoo-2-faac0269905cf143f96d78c1d7f75fc707807a23.zip
rc-script fixes
Diffstat (limited to 'sys-apps/at')
-rw-r--r--sys-apps/at/ChangeLog7
-rw-r--r--sys-apps/at/files/atd.rc612
2 files changed, 12 insertions, 7 deletions
diff --git a/sys-apps/at/ChangeLog b/sys-apps/at/ChangeLog
index 4b80c2c43616..c9d79fae3d90 100644
--- a/sys-apps/at/ChangeLog
+++ b/sys-apps/at/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-apps/at
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/at/ChangeLog,v 1.2 2002/03/19 21:15:54 chadh Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/at/ChangeLog,v 1.3 2002/03/24 08:29:23 azarah Exp $
+
+ 24 Mar 2002; M.Schlemmer <azarah@gentoo.org>:
+
+ Update the rc-script to properly use the pidfile to stop the service,
+ and add "logger" to its need.
*at-3.1.8-r8 (18 Mar 2002)
18 Mar 2002; Chad Huneycutt <chadh@gentoo.org>:
diff --git a/sys-apps/at/files/atd.rc6 b/sys-apps/at/files/atd.rc6
index af8f1fb8642f..378ce13b28e3 100644
--- a/sys-apps/at/files/atd.rc6
+++ b/sys-apps/at/files/atd.rc6
@@ -1,22 +1,22 @@
#!/sbin/runscript
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/at/files/atd.rc6,v 1.8 2001/12/06 20:17:02 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/at/files/atd.rc6,v 1.9 2002/03/24 08:29:24 azarah Exp $
depend() {
- need clock
- use sysklogd metalog syslog-ng
+ need clock logger
}
start() {
ebegin "Starting atd"
- start-stop-daemon --start --quiet --exec /usr/sbin/atd
+ start-stop-daemon --start --quiet --pidfile /var/run/atd.pid \
+ --startas /usr/sbin/atd
eend $?
}
stop() {
ebegin "Shutting down atd"
- #dont kill with --pidfile, as it does not always get created -- Azarah
- start-stop-daemon --stop --quiet --exec /usr/sbin/atd
+ start-stop-daemon --stop --quiet --pidfile /var/run/atd.pid
eend $?
}
+