Skip to content

Instantly share code, notes, and snippets.

@bartread
Last active August 14, 2024 13:10
Show Gist options
  • Save bartread/d169a4416cefc306a666e2fec2f62eb3 to your computer and use it in GitHub Desktop.
Save bartread/d169a4416cefc306a666e2fec2f62eb3 to your computer and use it in GitHub Desktop.

Revisions

  1. 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 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