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
 ELSE
/bin/echo "....obladaa"
 /bin/mount /dev/something somewherelse
 ENDiF
 #--------------

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
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to