Created
August 14, 2014 02:17
-
-
Save FrancisVarga/d65267fc12c50c3c2c5d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
rm -rf Temp3/* | |
mv web-backend.tar.gz Temp3/ | |
tar xzf Temp3/web-backend.tar.gz -C Temp3/ | |
sudo stop web-backend | |
sudo start web-backend | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "Start Web-Backend" | |
start on (local-filesystems and net-device-up) | |
stop on runlevel [!2345] | |
respawn | |
exec /home/ubuntu/Temp3/run.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment