[systemd-devel] macros in systemd unit files question

lux-integ lux-integ at btconnect.com
Wed Jul 31 07:03:04 PDT 2013

On Wednesday 31 July 2013 14:13:56 Tom Gundersen wrote:
> > example please?
> Make a bash script (or whatever else) doing what you want (the
> pseudo-code you posted). Save it as /usr/local/bin/foo and create a
> unit file with ExecStart=/usr/local/bin/foo.

thanks for your suggestion.
just one last ( I hope )question
suppose my pseudocode has   lines  with /bin/echo "something"  to invoke 
console output  like so:_

 IF mountpoint exists
/bin/echo "....obladee"
 /bin/mount /dev/something  $mountpoint
/bin/echo "....obladaa"
 /bin/mount /dev/something somewherelse

does this   file need to be stripped of the /bin/echo lines?
in otherwords will systemd print the "obladee" or  "obladaa.." lines during 
execution or do they need to be removed before ExecStart works?

thanks in advance

More information about the systemd-devel mailing list