Changeset 480 for trunk/pkg/deb


Ignore:
Timestamp:
02/22/08 12:42:25 (16 years ago)
Author:
bastiaans
Message:

pkg/deb/init.d/jobmond:

  • more fixes: dont use --exec since process name is python
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pkg/deb/init.d/jobmond

    r478 r480  
    1 #! /bin/sh
     1#!/bin/sh
    22
    33PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
     
    66DESC="Job Monitor Daemon"
    77
    8 PIDFILE="/var/run/jobmond.pid"
     8PIDFILE="/var/run/$NAME.pid"
    99
    1010test -x $DAEMON || return 0
     
    1717  start)
    1818        echo -n "Starting $DESC: "
    19         start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
    20                 --exec $DAEMON -- --pidfile "$PIDFILE" $OPTIONS || { rm -f "$PIDFILE"; echo "start failed."; exit 0; }
     19        start-stop-daemon --start --quiet --startas "$DAEMON" --pidfile "$PIDFILE" -- \
     20                --pidfile="$PIDFILE" $OPTIONS || { echo "start failed."; exit 0; }
    2121        echo "$NAME."
    2222        exit 0
     
    2424  stop)
    2525        echo -n "Stopping $DESC: "
    26         start-stop-daemon --stop  --quiet --pidfile /var/run/$NAME.pid \
     26        start-stop-daemon --stop  --quiet --pidfile "$PIDFILE" \
    2727                --signal 9 2>&1 > /dev/null || { rm -f "$PIDFILE"; echo "not running."; exit 0; }
    2828        echo "$NAME."
Note: See TracChangeset for help on using the changeset viewer.