~charmers/charms/trusty/hsenidmobile-ctap-doc/trunk

« back to all changes in this revision

Viewing changes to hooks/stop

  • Committer: Malshan Peiris
  • Date: 2014-11-11 11:53:46 UTC
  • Revision ID: malshan@hsenidmobile.com-20141111115346-g71sfn9oup5mz60k
Fixed install issues, removed deprecated relations, made port configurable

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash
2
2
set -e
3
3
USER=`whoami`
4
 
JETTY_HOME=/home/$USER/jetty-distribution-9.2.1.v20140609
5
 
juju-log "jetty server Started Go to IP:8080/doc"
 
4
JETTY_HOME=/home/$USER/jetty
 
5
 
6
6
cd $JETTY_HOME
 
7
port_no=`cat port_no.tmp`
7
8
cd bin
8
9
./jetty.sh stop
 
10
close-port $port_no/tcp
 
11
juju-log "______________jetty server Stopped ____________________"
9
12