Created
June 3, 2018 02:45
-
-
Save andymac4182/e545f9586755b88692226f1bc603addb to your computer and use it in GitHub Desktop.
This file contains 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
[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