Skip to content
Permalink
Browse files

Improve systemd example init script.

  • Loading branch information...
Peter Tripp
Peter Tripp committed Sep 23, 2016
1 parent 498d656 commit 4ad0d969a3674abd1bbe7f2132ac2f3bfaec1201
Showing with 6 additions and 2 deletions.
  1. +6 −2 examples/hubot.service
@@ -14,8 +14,12 @@ User=change-to-hubot-user
Restart=always
RestartSec=10

; Configure Hubot environment variables, make sure to use quotes around whitespace as shown below.
Environment=HUBOT_aaa=xxx "HUBOT_bbb='yyy yyy'"
; Configure Hubot environment variables, use quotes around vars with whitespace as shown below.
Environment="HUBOT_aaa=xxx"
Environment="HUBOT_bbb='yyy yyy'"

; Alternatively multiple environment variables can loaded from an external file
;EnvironmentFile=/etc/hubot-environment

ExecStart=/path/to/hubot/bin/hubot --adapter zzz

0 comments on commit 4ad0d96

Please sign in to comment.
You can’t perform that action at this time.