~ci-train-bot/url-dispatcher/url-dispatcher-ubuntu-zesty-2566

« back to all changes in this revision

Viewing changes to data/url-dispatcher.conf.in

  • Committer: CI Train Bot
  • Author(s): Ted Gould
  • Date: 2015-11-10 14:37:05 UTC
  • mfrom: (89.1.9 no-db-no-play)
  • Revision ID: ci-train-bot@canonical.com-20151110143705-6jaxzrfh5wmcrsuj
Remove the cache if the service fails to start. Fail to start if we can't create the database. Fixes: #1483854
Approved by: PS Jenkins bot, Ken VanDine

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
emits application-start
10
10
 
11
 
exec @pkglibexecdir@/url-dispatcher
 
11
script
 
12
        @pkglibexecdir@/url-dispatcher
 
13
        if [ $? -ne 0 ]; then
 
14
                retval = $?
 
15
                rm -rf ${HOME}/.cache/url-dispatcher/urls-1.db*
 
16
                start url-dispatcher-refresh
 
17
                exit $retval
 
18
        fi
 
19
end script
 
20