/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to init.d-mandos

* mandos (Client.checked_ok): Set "expires" after setting timeout.
  (MultiprocessingMixIn.process_request): Return process object.
  (MultiprocessingMixInWithPipe.process_request): Receive proc object
                                                  and pass it to
                                                  add_pipe.  Do not
                                                  use super().
  (MultiprocessingMixInWithPipe.add_pipe): Take "proc" argument.  All
                                           callers changed.
  (MandosServer.add_pipe): Take "proc" argument.  All callers changed.
  (MandosServer.handle_ipc): Take "proc" argument.  All callers
                             changed.  Wait for process completion
                             when pipe closes.
  (main/cleanup): Remove any zombies.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
NAME=mandos
24
24
DAEMON=/usr/sbin/$NAME
25
25
DAEMON_ARGS=""
26
 
PIDFILE=/run/$NAME.pid
 
26
PIDFILE=/var/run/$NAME.pid
27
27
SCRIPTNAME=/etc/init.d/$NAME
28
28
 
29
29
# Exit if the package is not installed
149
149
                ;;
150
150
        esac
151
151
        ;;
152
 
  status)
153
 
        status_of_proc "$DAEMON" "$NAME" -p "$PIDFILE"
154
 
        ;;
155
152
  *)
156
153
        #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
157
154
        echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2