blob: eb1412e4587e28402c611c2cc0c99d9db87fe6ca (
plain)
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
|
Index: omnewrotate.orig/data/omnewrotate.in
===================================================================
--- omnewrotate.orig/data/omnewrotate.in (revision 66)
+++ omnewrotate/data/omnewrotate.in (working copy)
@@ -4,10 +4,14 @@
. @SYSCONFDIR@/default/omnewrotate.conf
fi
-export DIPLAY=:0
PIDFILE="/var/run/omnewrotate.pid"
case "$1" in
+ autostart)
+ if test "$START" == "yes" ; then
+ $0 start
+ fi
+ ;;
start)
echo -n starting omnewrotate...
/sbin/start-stop-daemon -S \
Index: omnewrotate.orig/data/89omnewrotate.in
===================================================================
--- omnewrotate.orig/data/89omnewrotate.in (revision 66)
+++ omnewrotate/data/89omnewrotate.in (working copy)
@@ -1,9 +1,3 @@
#!/bin/sh
-if [ -f @CONFIGDIR@/omnewrotate.conf ] ; then
- . @CONFIGDIR@/omnewrotate.conf
-fi
-
-if test "$START" == "yes" ; then
- exec @SYSCONFDIR@/init.d/omnewrotate start
-fi
+@SYSCONFDIR@/init.d/omnewrotate autostart
|