# Juliaup on linux & systemd

**URL:** <https://discourse.julialang.org/t/juliaup-on-linux-systemd/87196>\
**Category:** Tooling\
**Tags:** juliaup\
**Created:** [September 13, 2022, 9:14am UTC](https://discourse.julialang.org/t/juliaup-on-linux-systemd/87196 "2022-09-13T09:14:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steven\_Sagaert](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/steven_sagaert/32/29578_2.png) [@Steven\_Sagaert](https://discourse.julialang.org/u/Steven_Sagaert)\
**Post date:** [September 13, 2022, 9:14am UTC](https://discourse.julialang.org/t/juliaup-on-linux-systemd/87196/1 "2022-09-13T09:14:43Z")

</div>

Hi,  
I’ve installed juliaup on a CentOS 8.3 server and everything works fine for interactive use. However when I try to start a service via systemd it fails. Note that I have installed juliaup (& julia) as root user and hence all that stuff is under /root dir and this is a problem for systemd. It just won’t start the service. It took me a while to figure out the problem since info from systemd is minimal. In the end the solution was to copy the julia installation to a different dir (/opt/julia) and give that path to julia in the .service file. That works but it sucks that I now have 2 dirs where julia is and if I upgrade julia via juliaup or packages I have to manually keep that in sync.

I don’t know if this qualifies as a bug for juliaup but just installing everyting in the userdir can give unexpected problems. Maybe it’s just for the root user . I haven’t checked that . Just wanted to give a heads up.

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [September 13, 2022, 3:02pm UTC](https://discourse.julialang.org/t/juliaup-on-linux-systemd/87196/2 "2022-09-13T15:02:13Z")

</div>

Does systemd have access to /root? Does it usually run as root?

---

<div class="post-metadata">

**Author:** ![Steven\_Sagaert](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/steven_sagaert/32/29578_2.png) [@Steven\_Sagaert](https://discourse.julialang.org/u/Steven_Sagaert)\
**Post date:** [September 13, 2022, 3:13pm UTC](https://discourse.julialang.org/t/juliaup-on-linux-systemd/87196/3 "2022-09-13T15:13:42Z")

</div>

I don’t think systemd runs as root. If you look at the permissions of /root it’s readable & executable by all but somehow systemd does not want to read/run it. I think it’s a security feature of systemd. Anyway my point is that the default of juliaup to installe julia under (hidden) subdir of a user homedir can have unintented consequences.
