# Basic question about launching Jenkins

**URL:** <https://community.jenkins.io/t/basic-question-about-launching-jenkins/9204>\
**Category:** Using Jenkins\
**Created:** [August 24, 2023, 2:55pm UTC](https://community.jenkins.io/t/basic-question-about-launching-jenkins/9204 "2023-08-24T14:55:02Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidA2014](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/davida2014/32/88_2.png) [@DavidA2014](https://community.jenkins.io/u/DavidA2014)\
**Post date:** [August 24, 2023, 2:55pm UTC](https://community.jenkins.io/t/basic-question-about-launching-jenkins/9204/1 "2023-08-24T14:55:02Z")

</div>

Our Jenkins instances run on Ubuntu 22.04 and were installed by apt. Does that infer the method by which Jenkins gets launched?

We want to look at changing a system property. I can see information about how to do that by passing `-Dproperty=value` to the `java` command line. How could we apply a custom property in our situation (where we don’t launch from the command line) ?

---

<div class="post-metadata">

**Author:** ![DavidA2014](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/davida2014/32/88_2.png) [@DavidA2014](https://community.jenkins.io/u/DavidA2014)\
**Post date:** [August 24, 2023, 3:01pm UTC](https://community.jenkins.io/t/basic-question-about-launching-jenkins/9204/2 "2023-08-24T15:01:08Z")

</div>

PS I’m told it’s handled by systemd. But still need to understand how to change property values.

---

<div class="post-metadata">

**Author:** ![MarkEWaite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markewaite/32/20_2.png) [@MarkEWaite](https://community.jenkins.io/u/MarkEWaite)\
**Post date:** [August 24, 2023, 3:01pm UTC](https://community.jenkins.io/t/basic-question-about-launching-jenkins/9204/3 "2023-08-24T15:01:25Z")

</div>

That means you are using the `systemd` service to manage the Jenkins service. Documentation is available with videos at

> **[Managing systemd services](https://www.jenkins.io/doc/book/system-administration/systemd-services/)**
>
> Jenkins – an open source automation server which enables developers around the world to reliably build, test, and deploy their software

Here is the video

[![](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/0/04a2972bcb9f7e4756fdc406b9992a75a8f47ed2.jpeg "🔴 Managing the Jenkins systemd Service on Ubuntu 20.04") ](https://www.youtube.com/watch?v=pwR9TPW2oG4)

---

<div class="post-metadata">

**Author:** ![DavidA2014](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/davida2014/32/88_2.png) [@DavidA2014](https://community.jenkins.io/u/DavidA2014)\
**Post date:** [August 24, 2023, 4:15pm UTC](https://community.jenkins.io/t/basic-question-about-launching-jenkins/9204/4 "2023-08-24T16:15:02Z")

</div>

@MarkEWaite Thanks for the links.

I want to modify property:

```
hudson.slaves.WorkspaceList

```

My understanding is that I should do:

```
$ sudo systemctl edit jenkins

```

and set the appropriate lines to:

```
# # Arguments for the Jenkins JVM
Environment="JAVA_OPTS=-Djava.awt.headless=true -Dhudson.slaves.WorkspaceList=_"

```

(we want an underscore as the separator).

I would then restart the service:

```auto
systemctl stop jenkins
systemctl start jenkins

```

I also understand that this ‘override’ would be retained when I upgrade Jenkins using apt.

Please will you confirm whether or not my understanding is correct?

Thank you!

---

<div class="post-metadata">

**Author:** ![MarkEWaite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markewaite/32/20_2.png) [@MarkEWaite](https://community.jenkins.io/u/MarkEWaite)\
**Post date:** [August 24, 2023, 5:03pm UTC](https://community.jenkins.io/t/basic-question-about-launching-jenkins/9204/5 "2023-08-24T17:03:10Z")

</div>

That is correct as far as I understand it. I use that technique to set the Jenkins context path. It works for me.

---

<div class="post-metadata">

**Author:** ![DavidA2014](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/davida2014/32/88_2.png) [@DavidA2014](https://community.jenkins.io/u/DavidA2014)\
**Post date:** [August 24, 2023, 5:23pm UTC](https://community.jenkins.io/t/basic-question-about-launching-jenkins/9204/6 "2023-08-24T17:23:12Z")

</div>

Thanks very much Mark.

---

<div class="post-metadata">

**Author:** ![DavidA2014](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/davida2014/32/88_2.png) [@DavidA2014](https://community.jenkins.io/u/DavidA2014)\
**Post date:** [August 29, 2023, 4:55pm UTC](https://community.jenkins.io/t/basic-question-about-launching-jenkins/9204/7 "2023-08-29T16:55:41Z")

</div>

@MarkEWaite When I attempt to change the Jenkins override file:

```
$ sudo systemctl edit jenkins

```

and save it, the editor suggests writing it to an odd filename, for example:

```
File Name to Write: /etc/systemd/system/jenkins.service.d/.#override.conf8aea33f66b6a9330

```

Restarting the service does not pick up the changed value.

(This is Ubuntu).

Can you tell what I am misunderstanding here please?

---

<div class="post-metadata">

**Author:** ![MarkEWaite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markewaite/32/20_2.png) [@MarkEWaite](https://community.jenkins.io/u/MarkEWaite)\
**Post date:** [August 29, 2023, 5:44pm UTC](https://community.jenkins.io/t/basic-question-about-launching-jenkins/9204/8 "2023-08-29T17:44:50Z")

</div>

> [@DavidA2014](#):
>
> the editor suggests writing it to an odd filename

That is the temporary file name that is used by `systemctl edit` to hold your changes. Save it as that file (without changing the name of the file) and `systemctl` should apply the changes.

---

<div class="post-metadata">

**Author:** ![DavidA2014](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/davida2014/32/88_2.png) [@DavidA2014](https://community.jenkins.io/u/DavidA2014)\
**Post date:** [August 30, 2023, 4:23pm UTC](https://community.jenkins.io/t/basic-question-about-launching-jenkins/9204/10 "2023-08-30T16:23:50Z")

</div>

Thanks again for your help. It is working now.
