Index: trunk/udpprofile/debian/changelog |
— | — | @@ -1,3 +1,15 @@ |
| 2 | +udpprofile (1.0-2) lucid-wikimedia; urgency=low |
| 3 | + |
| 4 | + * Fix init script agin |
| 5 | + |
| 6 | + -- Ryan Lane <rlane@wikimedia.org> Wed, 30 Mar 2011 23:07:00 +0000 |
| 7 | + |
| 8 | +udpprofile (1.0-1) lucid-wikimedia; urgency=low |
| 9 | + |
| 10 | + * Fix init script |
| 11 | + |
| 12 | + -- Ryan Lane <rlane@wikimedia.org> Wed, 30 Mar 2011 22:59:28 +0000 |
| 13 | + |
2 | 14 | udpprofile (1.0) lucid-wikimedia; urgency=low |
3 | 15 | |
4 | 16 | * Initial package |
Index: trunk/udpprofile/debian/udpprofile.init |
— | — | @@ -20,7 +20,7 @@ |
21 | 21 | SCRIPTNAME=/etc/init.d/udpprofile |
22 | 22 | |
23 | 23 | # Exit if the package is not installed |
24 | | -[ -x "$START" ] || exit 0 |
| 24 | +[ -x "$DAEMON" ] || exit 0 |
25 | 25 | |
26 | 26 | # Read configuration variable file if it is present |
27 | 27 | [ -r /etc/default/$NAME ] && . /etc/default/$NAME |
— | — | @@ -41,9 +41,9 @@ |
42 | 42 | # 0 if daemon has been started |
43 | 43 | # 1 if daemon was already running |
44 | 44 | # 2 if daemon could not be started |
45 | | - start-stop-daemon --start --quiet -m -d /tmp -c $USER --exec $START --test > /dev/null \ |
| 45 | + start-stop-daemon --start --quiet -m --pidfile /var/lock/collector -d /tmp -c $USER --exec $DAEMON --test > /dev/null \ |
46 | 46 | || return 1 |
47 | | - start-stop-daemon --start --quiet -m -d /tmp -c $USER --exec $START \ |
| 47 | + start-stop-daemon --start --quiet -m --pidfile /var/lock/collector -d /tmp -c $USER --exec $DAEMON \ |
48 | 48 | || return 2 |
49 | 49 | # Add code here, if necessary, that waits for the process to be ready |
50 | 50 | # to handle requests from services started subsequently which depend |
— | — | @@ -60,7 +60,7 @@ |
61 | 61 | # 1 if daemon was already stopped |
62 | 62 | # 2 if daemon could not be stopped |
63 | 63 | # other if a failure occurred |
64 | | - start-stop-daemon --start --quiet -c $USER --exec $STOP |
| 64 | + start-stop-daemon --stop --quiet -c $USER --exec $DAEMON |
65 | 65 | RETVAL="$?" |
66 | 66 | [ "$RETVAL" = 2 ] && return 2 |
67 | 67 | return "$RETVAL" |