Skip to content

Instantly share code, notes, and snippets.

@uu59
Last active February 9, 2020 02:35
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uu59/23968e3983adcf5b4cce400710b51cb2 to your computer and use it in GitHub Desktop.
Save uu59/23968e3983adcf5b4cce400710b51cb2 to your computer and use it in GitHub Desktop.
[Unit]
Description=digdag
[Service]
User=uu59
Restart=always
TimeoutStartSec=30s
Type=simple
ExecStart=/home/uu59/digdag-server/start.bash
[Install]
WantedBy=multi-user.target
#!/usr/bin/env bash
set -ue
set -x
exec >> /tmp/digdag.log
exec 2>&1
export PATH="/home/uu59/.rbenv/shims:$PATH"
which -a java
which -a ruby
exec /usr/local/bin/digdag server -o /home/uu59/digdag-server/ -O /home/uu59/digdag-server/log -A /home/uu59/digdag-server/log -c /home/uu59/digdag-server/config.properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment