Ignore:
Timestamp:
Nov 22, 2008, 5:36:20 AM (16 years ago)
Author:
broder
Message:

Punt more tabs

I bet I wrote this with tabs, too. *sigh*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-remote-server/debian/invirt-remote-server.init

    r1534 r1740  
    2929do_start()
    3030{
    31         # Return
    32         #   0 if daemon has been started
    33         #   1 if daemon was already running
    34         #   2 if daemon could not be started
    35         gen_files
    36         modprobe fuse
    37         daemon --running -n $NAME && return 1
    38         daemon -r -O daemon.info -E daemon.err -n $NAME -U $DAEMON $DAEMON_ARGS || return 2
     31    # Return
     32    #   0 if daemon has been started
     33    #   1 if daemon was already running
     34    #   2 if daemon could not be started
     35    gen_files
     36    modprobe fuse
     37    daemon --running -n $NAME && return 1
     38    daemon -r -O daemon.info -E daemon.err -n $NAME -U $DAEMON $DAEMON_ARGS || return 2
    3939}
    4040
    4141do_stop()
    4242{
    43         # Return
    44         #   0 if daemon has been stopped
    45         #   1 if daemon was already stopped
    46         #   2 if daemon could not be stopped
    47         #   other if a failure occurred
    48         daemon --stop -n $NAME
    49         RETVAL="$?"
    50         [ "$RETVAL" = 2 ] && return 2
    51         # Many daemons don't delete their pidfiles when they exit.
    52         rm -f $PIDFILE
    53         umount "$DAEMON_ARGS"
    54         return "$RETVAL"
     43    # Return
     44    #   0 if daemon has been stopped
     45    #   1 if daemon was already stopped
     46    #   2 if daemon could not be stopped
     47    #   other if a failure occurred
     48    daemon --stop -n $NAME
     49    RETVAL="$?"
     50    [ "$RETVAL" = 2 ] && return 2
     51    # Many daemons don't delete their pidfiles when they exit.
     52    rm -f $PIDFILE
     53    umount "$DAEMON_ARGS"
     54    return "$RETVAL"
    5555}
    5656
Note: See TracChangeset for help on using the changeset viewer.