Skip to content

Commit

Permalink
Update to generic launcher
Browse files Browse the repository at this point in the history
I realized the launcher itself handles looking up the Ruby interpreter with /usr/bin/env ruby. Manually specifying an interpreter is going to try to circumvent that and isn't nearly as portable as an example service. By moving this sample script back to the generic launcher directly a user can choose to handle how /usr/bin/env looks up Ruby, whether it's with a jruby installation, rbenv, or however the user wishes.
  • Loading branch information
frozenfoxx authored and mattkirby committed Jun 8, 2018
1 parent 9b8b353 commit 65fb4c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/vmpooler.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ After=basic.target network.target
[Service]
EnvironmentFile=-/etc/default/vmpooler
WorkingDirectory=/opt/vmpooler
ExecStart=/opt/jruby/bin/jruby /opt/vmpooler/vmpooler -s Puma -E production
ExecStart=/opt/vmpooler/vmpooler -s Puma -E production
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process

Expand Down

0 comments on commit 65fb4c9

Please sign in to comment.