Skip to content

Instantly share code, notes, and snippets.

@nohtyp
Created May 25, 2018 13:26
Show Gist options
  • Save nohtyp/1e817f157fce501bbbd284674344cc32 to your computer and use it in GitHub Desktop.
Save nohtyp/1e817f157fce501bbbd284674344cc32 to your computer and use it in GitHub Desktop.
Geminabox systemd service script
[Unit]
Description=Geminabox
After=network.target
[Service]
User=geminabox
ExecStart=/usr/local/bin/rackup /etc/geminabox/config.ru -o 0.0.0.0
ExecStop=/bin/kill $(ps -ef |grep puma|grep -v grep | awk -F ' ' '{print $2}')
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment