systemd: Configure command-line using the environment

The existing behaviour remains the default but can be modified by
dropping in an environment file into /etc/default.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Icbeac6ea60bf76c98eaa03f4e5f2ecf0ddc2733d
diff --git a/systemd/system/debug-trigger@.service b/systemd/system/debug-trigger@.service
index 6e40474..2a5e085 100644
--- a/systemd/system/debug-trigger@.service
+++ b/systemd/system/debug-trigger@.service
@@ -4,4 +4,6 @@
 
 [Service]
 Type=simple
-ExecStart=/usr/bin/debug-trigger /%I /proc/sysrq-trigger
+Environment=DEBUG_TRIGGER_OPTIONS= DEBUG_TRIGGER_SOURCE=/%I DEBUG_TRIGGER_SINK=/proc/sysrq-trigger
+EnvironmentFile=-/etc/default/debug-trigger
+ExecStart=/usr/bin/debug-trigger $DEBUG_TRIGGER_OPTIONS $DEBUG_TRIGGER_SOURCE $DEBUG_TRIGGER_SINK