Skip to content

Commit 4ad0d96

Browse files
author
Peter Tripp
committed
Improve systemd example init script.
1 parent 498d656 commit 4ad0d96

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

examples/hubot.service

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@ User=change-to-hubot-user
1414
Restart=always
1515
RestartSec=10
1616

17-
; Configure Hubot environment variables, make sure to use quotes around whitespace as shown below.
18-
Environment=HUBOT_aaa=xxx "HUBOT_bbb='yyy yyy'"
17+
; Configure Hubot environment variables, use quotes around vars with whitespace as shown below.
18+
Environment="HUBOT_aaa=xxx"
19+
Environment="HUBOT_bbb='yyy yyy'"
20+
21+
; Alternatively multiple environment variables can loaded from an external file
22+
;EnvironmentFile=/etc/hubot-environment
1923

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

0 commit comments

Comments
 (0)