~upstart-devel/upstart/upstart-jobs

« back to all changes in this revision

Viewing changes to utopic/usr/share/upstart/sessions/monkeysphere-validation-agent.conf

  • Committer: Dimitri John Ledkov
  • Date: 2014-11-19 12:58:41 UTC
  • Revision ID: dimitri.j.ledkov@intel.com-20141119125841-98dr37roy8dvcv3b
auto update

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
description "Launch the monkeysphere validation agent"
2
 
 
3
 
author "Iain Lane <iain.lane@canonical.com>"
4
 
 
5
 
start on starting xsession-init
6
 
 
7
 
pre-start script
8
 
    MSSYSCONFIG=/etc/monkeysphere/monkeysphere.conf
9
 
    MSUSERCONFIG="$HOME/.monkeysphere/monkeysphere.conf"
10
 
 
11
 
    if [ ! "$(USE_VALIDATION_AGENT=
12
 
    [ -r "$MSSYSCONFIG" ]  && . "$MSSYSCONFIG" 2>/dev/null || :
13
 
    [ -r "$MSUSERCONFIG" ] && . "$MSUSERCONFIG" 2>/dev/null || :
14
 
    printf '%s' "$USE_VALIDATION_AGENT")" != "false" ] ; then
15
 
        stop
16
 
        exit 0
17
 
    fi
18
 
end script
19
 
 
20
 
# msva-perl-upstart-child sets the environment variable
21
 
exec monkeysphere-validation-agent /usr/lib/msva-perl/msva-perl-upstart-child
22
 
 
23
 
post-stop exec initctl unset-env --global MONKEYSPHERE_VALIDATION_AGENT_SOCKET