Created
March 27, 2019 14:36
-
-
Save gargolito/6553f18b5ef048e02122c7cbf7b23adf to your computer and use it in GitHub Desktop.
#systemd #linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment