Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save danigunawan/2359ed4c82e6850ec71aec7c896c8a7f to your computer and use it in GitHub Desktop.
Save danigunawan/2359ed4c82e6850ec71aec7c896c8a7f to your computer and use it in GitHub Desktop.

Revisions

  1. @bartread bartread revised this gist Jan 21, 2017. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,7 @@
    #! /bin/sh

    # Other deployment actions here. Want to install (or bounce) service last.

    if [ -f /etc/systemd/system/arcadely.service ]; then
    sudo systemctl stop arcadely.service
    sudo systemctl disable arcadely.service
  2. @bartread bartread created this gist Jan 21, 2017.
    11 changes: 11 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    #! /bin/sh

    if [ -f /etc/systemd/system/arcadely.service ]; then
    sudo systemctl stop arcadely.service
    sudo systemctl disable arcadely.service
    else
    sudo \cp -f ./arcadely.service /etc/systemd/system/arcadely.service
    fi

    sudo systemctl enable arcadely.service
    sudo systemctl start arcadely.service