File: 07_fix-crontab-suggestions.diff

package info (click to toggle)
mlmmj 1.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,444 kB
  • sloc: ansic: 13,036; sh: 5,950; php: 1,336; perl: 904; makefile: 99
file content (49 lines) | stat: -rw-r--r-- 2,057 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Description: Alter the mlmmj instructions for making a crontab entry, which
 by default tells the user to add an entry without specifying the user.
 Additionally let the user know that the Debian package already adds a
 crontab entry in /etc/cron.d meaning under normal circumstances no
 additional crontab is necessary
Author: Christopher Knadle <Chris.Knadle@coredump.us>
Bug-Debian: https://bugs.debian.org/804436
Last-Updated: 2024-06-26
Forwarded: not-needed

--- a/src/mlmmj-make-ml
+++ b/src/mlmmj-make-ml
@@ -183,10 +183,16 @@
 if [ -z "$ADDCRON" ]; then
 	cat <<EOF
 
-If you're not starting mlmmj-maintd in daemon mode,
-don't forget to add this line to your crontab:
+If you're not running mlmmj-maintd for all mailing lists
+in /var/spool/mlmmj such as
+   /usr/bin/mlmmj-maintd -F -d /var/spool/mlmmj
+via cron, then don't forget to add this to your crontab:
 $CRONENTRY
 
+Note: the Debian mlmmj package installs a crontab in
+      /etc/cron.d/mlmmj which runs mlmmj-maintd for all
+      mailing lists in /var/spool/mlmmj every 1/2 hour.
+
 EOF
 	printf 'Should I add it to the system-wide crontab at %s for you? (y/n) [n] ' "$CRONTAB"
 	read -r ADDCRON
--- a/README.md
+++ b/README.md
@@ -95,11 +95,11 @@
  4) Start mlmmj-maintd (remember full path when starting it!) or add it to
     crontab with -F switch. The recommended way for now is to run it via cron:
 
-        "0 */2 * * *  /usr/bin/mlmmj-maintd -F -L /var/spool/mlmmj/mlmmj-test"
+        0 */2 * * *  root /usr/bin/mlmmj-maintd -F -L /var/spool/mlmmj/mlmmj-test
 
-    It should be started as root, as mlmmj-maintd will become the user owning
-    the listdir (/var/spool/mlmmj/mlmmj-test), and log it's last maintenance
-    run to listdir/mlmmj-maintd.lastrun.log.
+    Started as root, mlmmj-maintd will become the user owning the listdir
+    (/var/spool/mlmmj/mlmmj-test), and log it's last maintenance run to
+    listdir/mlmmj-maintd.lastrun.log.
 
     If you have several lists below /var/spool/mlmmj you can use -d:
     /usr/bin/mlmmj-maintd -F -d /var/spool/mlmmj