Skip to content

Instantly share code, notes, and snippets.

@FrancisVarga
Created August 14, 2014 02:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FrancisVarga/d65267fc12c50c3c2c5d to your computer and use it in GitHub Desktop.
Save FrancisVarga/d65267fc12c50c3c2c5d to your computer and use it in GitHub Desktop.
#!/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
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