Last active
April 16, 2020 00:26
-
-
Save ccammilleri/ce5ec22fc83531b697a5e12062d8e194 to your computer and use it in GitHub Desktop.
A systemd script to run hashview as a service.
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=hashview | |
[Service] | |
User=ubuntu | |
Group=ubuntu | |
WorkingDirectory=/home/ubuntu/hashview | |
ExecStart=/bin/bash -lc 'RACK_ENV=development foreman start' | |
ExecStop=/bin/bash -lc 'RACK_ENV=development foreman stop' | |
Restart=always | |
[Install] | |
WantedBy=multi-user.target |
Thank you so much for getting this up here!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Save script to
/etc/systemd/system/hashview.service
Then run the following: