/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerheadd

  • Committer: Ubuntu One Auto Copilot
  • Author(s): Jelmer Vernooij
  • Date: 2023-02-01 10:38:17 UTC
  • mfrom: (543.2.1 lp:loggerhead)
  • Revision ID: otto-copilot@canonical.com-20230201103817-h68q8zmdvm7u1vv4
Sort Python import definitions

Merged from https://code.launchpad.net/~jelmer/loggerhead/isort/+merge/436635

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    SUDO="sudo -H -u $LHUSER"
23
23
fi
24
24
 
25
 
# If serve-branches is not in your path, you will need to specify the full path:
26
 
SERVE_BRANCHES_CMD=serve-branches
 
25
# If loggerhead-serve is not in your path, you will need to specify the full path:
 
26
SERVE_BRANCHES_CMD=loggerhead-serve
27
27
 
28
28
LOG_FOLDER=/var/log/loggerhead
29
29
LOG_FILE=$LOG_FOLDER/loggerheadd.log
33
33
#please specify the base directory to serve:
34
34
BZRROOT=/bzrroot
35
35
 
36
 
# You can add additional options to serve-branches here:
 
36
# You can add additional options to loggerhead-serve here:
37
37
START_CMD="$SERVE_BRANCHES_CMD --prefix=$URL_PREFIX --log-folder=$LOG_FOLDER --port=$PORT $BZRROOT"
38
38
 
39
39
 
71
71
        $SUDO mkdir -p $LOG_FOLDER
72
72
    fi
73
73
    echo "" > $LOG_FILE
74
 
    $SUDO python $START_CMD > $LOG_FILE 2>&1 &
 
74
    $SUDO python3 $START_CMD > $LOG_FILE 2>&1 &
75
75
 
76
76
    #wait a little while of some logging to appear
77
77
    log=""