Skip to content

Instantly share code, notes, and snippets.

@nickjacob
Last active March 17, 2023 16:11
Show Gist options
  • Save nickjacob/9909574 to your computer and use it in GitHub Desktop.
Save nickjacob/9909574 to your computer and use it in GitHub Desktop.

Revisions

  1. nickjacob revised this gist Sep 13, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion systemd-prblm.service
    Original file line number Diff line number Diff line change
    @@ -3,4 +3,4 @@ Description=Demonstrate Bash

    [Service]
    ExecStartPre=/usr/bin/bash -c "/usr/bin/systemctl set-environment MYVAR=$(( 2 + 2 ))"
    ExecStart=/usr/bin/ech "2 + 2 = ${MYVAR}"
    ExecStart=/usr/bin/echo "2 + 2 = ${MYVAR}"
  2. Nick Jacob created this gist Apr 1, 2014.
    6 changes: 6 additions & 0 deletions systemd-prblm.service
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    [Unit]
    Description=Demonstrate Bash

    [Service]
    ExecStartPre=/usr/bin/bash -c "/usr/bin/systemctl set-environment MYVAR=$(( 2 + 2 ))"
    ExecStart=/usr/bin/ech "2 + 2 = ${MYVAR}"