Skip to content

Instantly share code, notes, and snippets.

@andymac4182
Created June 3, 2018 02:45
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 andymac4182/e545f9586755b88692226f1bc603addb to your computer and use it in GitHub Desktop.
Save andymac4182/e545f9586755b88692226f1bc603addb to your computer and use it in GitHub Desktop.
[Unit]
Description=SERVICENAME
[Service]
WorkingDirectory=#{Octopus.Action.Package.InstallationDirectoryPath}
ExecStart=#{Octopus.Action.Package.InstallationDirectoryPath}/SERVICENAME
Restart=always
RestartSec=10
User=ec2-user
Environment=HOSTNAME=#{Octopus.Machine.Name}
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment