On 9 February 2016 at 17:34, Guus Snijders <gsnijders@xxxxxxxxx> wrote: > Op 9 feb. 2016 17:27 schreef "Michał Zegan" <webczat_200@xxxxxxxxxxxxxx>: >> > >> A note about using shell scripts in systemd: >> Who said you can't? and I don't talk about systemd's init.d >> compatibility that is disabled in arch. Although you have to write >> unit files, you can start scripts, so you do not really lose >> flexibility. Also systemd's isolation capabilities are superior, there >> are some things you currently cannot do from scripts, like >> PrivateTmp=yes and stuff. > > Isolation is AFAIK based on cgroups, not the easiest subject, but certainly > not impossible to implement. not impossible, if you reimplement systemd :) > PrivateTmp: Does that more then setting $TEMP to a custom value? > > I'm just being curious here. yes, it creates a filesystem/mount namespace for the process(es) and mount's a /tmp/systemd-private-xxxx/ directory as /tmp. from the point of view of the process it will never see anything else from the outer /tmp -- damjan