Skip to content

Instantly share code, notes, and snippets.

@obskein
Last active June 21, 2021 20:28
Show Gist options
  • Save obskein/61e39bb2692a5b5f13f17f00a78b5ca4 to your computer and use it in GitHub Desktop.
Save obskein/61e39bb2692a5b5f13f17f00a78b5ca4 to your computer and use it in GitHub Desktop.
/etc/systemd/system/xgtd_instance@.service
[Unit]
Description=xgtd-instance-%i
After=network.target
Before=shutdown.target
[Service]
User=your-user
Group=your-user
WorkingDirectory=/whereever-you-put-xgt
ExecStart=/bin/bash -lc "XGT_INSTANCE_INDEX=%i rake run"
TimeoutAbortSec=5
KillSignal=SIGABRT
[Install]
WantedBy=multi-user.target
@obskein
Copy link
Author

obskein commented Jun 21, 2021

sudo systemctl enable xgtd_instance@2
sudo systemctl enable xgtd_instance@3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment