Skip to content

Commit

Permalink
add systemd scripts
Browse files Browse the repository at this point in the history
Added basic ruby scripts that are used by a systemd service for dice
maiden. Makes my life easier when it comes to automating startup of
shards
  • Loading branch information
Humblemonk committed Apr 1, 2024
1 parent afb9934 commit acdf353
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/dice_maiden-down.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/ruby
# frozen_string_literal: true

# simple ruby script for stopping dice maiden eye shards - used with systemd service
p `eye stop shards`
11 changes: 11 additions & 0 deletions tools/dice_maiden-up.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/ruby
# frozen_string_literal: true

# simple ruby script for starting dice maiden eye service and reporting basic result - used with systemd service
eye = system('eye load')

if eye
puts 'eye is loading dice maiden service'
else
puts 'eye failed to load dice maiden service!'
end

0 comments on commit acdf353

Please sign in to comment.