I&#x27;m not the same author, but I run several Webapps in systemd units, with the below service for all of them:<p>Note the @ in the name, that means I reuse it as webapp@api.domain.name  webapp@frontend.domain.name and so on.<p>----8&lt;---- webapp@.service ----&gt;8----
    [Unit]
    Description=%i webapp<p><pre><code>    [Service]
    User=%i
    Group=%i

    # Note that the first argument of the command line (i.e. the program to execute) 
    # may not include % specifiers.
    ExecStart=&#x2F;srv&#x2F;webapp %i
    WorkingDirectory=&#x2F;srv&#x2F;%i&#x2F;

    PrivateTmp=true
    Type=simple
    Restart=always
    RestartSec=2s

    [Install]
    WantedBy=multi-user.target</code></pre>
---- 8&lt; ----<p>&#x2F;srv&#x2F;webapp is a simple script that will do &quot;exec $1&#x2F;webapp&quot;  which is the actual executable.