- Create the start and stop scripts of your application.
- Example:
#!/bin/bash
cd /home/ubuntu/myapp/
java -jar myapp.jar --server.port=8888 &| package de.martinfunk; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.net.Authenticator; | |
| import java.net.PasswordAuthentication; | |
| import java.net.URISyntaxException; | |
| import java.net.URL; | |
| import java.net.URLConnection; | |
| import java.security.KeyManagementException; |
| #!/usr/bin/env python | |
| """ | |
| Copyright (c) 2011, Daniel Bugl | |
| All rights reserved. | |
| Redistribution and use in source and binary forms, with or without | |
| modification, are permitted provided that the following conditions are met: | |
| 1. Redistributions of source code must retain the above copyright | |
| notice, this list of conditions and the following disclaimer. | |
| 2. Redistributions in binary form must reproduce the above copyright |