Posts

Showing posts from October 22, 2018

What is it I am doing wrong using `tl_case:Nn …`?

Image
Clash Royale CLAN TAG #URR8PPP up vote 1 down vote favorite When using document command arguments for case distinctions I routinely have been using the str_case:nn function, which works fine as is evident from the output of the myStrCase command. When attempting to use the tl_case:Nn function instead, by loading the argument into a _tl type variable, things go miserably wrong. The variable seems to be loaded with the correct value, and is then flagged as correct as far as the tl_case:Nn function is concerned, but the corresponding code is not executed. Why? documentclassarticle %======================= usepackage[check-declarations,log-functions]expl3 usepackagexparse %----------------------- ExplSyntaxOn tl_new:N l_rn_Aux_tl NewDocumentCommandmyStrCaseOemphm str_case:nnTF #1 emphtextit#2 Emphtextbftextit#2 ulineunderline#2 !~ERROR:~parameter~#1~=~#1~invalid % myStrCase NewDocumentCommandmyTlCaseOemphm tl_set:Nx l_rn_Aux_tl #1 checking~what~was~passed:~l_r

How to create composite systemd unit

Image
Clash Royale CLAN TAG #URR8PPP up vote 1 down vote favorite There I certain services, that I typically start together: say zookeeper+kafka+elassandra. Is there a way how to write composite unit: all starts together, all dies together? Meaning if I start this, it will delegate to start all that, and vice versa. What would be proper way of doing that? systemd share | improve this question asked 1 hour ago user1534084 16 3 add a comment  |  up vote 1 down vote favorite There I certain services, that I typically start together: say zookeeper+kafka+elassandra. Is there a way how to write composite unit: all starts together, all dies together? Meaning if I start this, it will delegate to start all that, and vice versa. What would be proper way of doing that? systemd share | improve this question asked 1 hour ago user1534084 16 3 add a comment  |  up vote 1 down vote favorite up v