# Linux : Run as service

**URL:** <https://forum.duplicati.com/t/linux-run-as-service/246>\
**Category:** Support\
**Created:** [August 25, 2017, 1:30am UTC](https://forum.duplicati.com/t/linux-run-as-service/246 "2017-08-25T01:30:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Byron\_Boy](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/b/b5ac83/32.png) [@Byron\_Boy](https://forum.duplicati.com/u/Byron_Boy)\
**Post date:** [August 25, 2017, 1:30am UTC](https://forum.duplicati.com/t/linux-run-as-service/246/1 "2017-08-25T01:30:10Z")

</div>

Hello.

I have just found Duplicati & installed beta2.0. I cannot find anywhere a test button for email settings but more importantly cannot find any ability to have Duplicati running & doing scheduled backups without having to log in, ie, run as a true service. Can you advise any further information?

Regards,

CJ

---

<div class="post-metadata">

**Author:** ![tenkian](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/b2d939/32.png) [@tenkian](https://forum.duplicati.com/u/tenkian)\
**Post date:** [August 25, 2017, 9:34am UTC](https://forum.duplicati.com/t/linux-run-as-service/246/2 "2017-08-25T09:34:42Z")

</div>

I can’t help with the email question.

The latest version I installed 2 days ago installed a systemd service. as long as this is running the backups should work. The web UI is just for status and changing configuration.

---

<div class="post-metadata">

**Author:** ![kenkendk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kenkendk/32/5305_2.png) [@kenkendk](https://forum.duplicati.com/u/kenkendk)\
**Post date:** [August 26, 2017, 9:18pm UTC](https://forum.duplicati.com/t/linux-run-as-service/246/3 "2017-08-26T21:18:21Z")

</div>

Which distro are you using?

As @tenkian said it installs a systemd service, so it should be a matter of running:

```plaintext
systemctl start duplicati

```

If you want the tray-icon, change the launcher executable to use:

```plaintext
duplicati --no-hosted-server --serverurl=http://localhost:8200

```

That will make the tray-icon start on login and point to the already running service.

If you cannot (or will not) use the systemd script, you can simply run

```plaintext
mono Duplicati.Server.exe &

```

In an init.rc script or similar.

The email setup is explained in this topic:

> [@How to set up email notification with Gmail](https://forum.duplicati.com/t/how-to-set-up-email-notification/233/6):
>
> You can send email reports by supplying some options to a backup job. You can do this in every backup job or in the Settings page. This is the preferred method, because you have to configure it once to make it work for all your backup jobs. You have to specify at least one option: --send-mail-to. All other mail-related options have default values, which you can change by specifying them. So the first thing you can try is using only this option. You can test if this works by typing from the comm…

---

<div class="post-metadata">

**Author:** ![archon810](https://forum.duplicati.com/user_avatar/forum.duplicati.com/archon810/32/3301_2.png) [@archon810](https://forum.duplicati.com/u/archon810)\
**Post date:** [August 7, 2019, 6:13am UTC](https://forum.duplicati.com/t/linux-run-as-service/246/4 "2019-08-07T06:13:10Z")

</div>

A helpful guide here for those who didn’t end up with service files (none were installed on OpenSUSE): [Headless installation on Debian or Ubuntu · duplicati/duplicati Wiki · GitHub](https://github.com/duplicati/duplicati/wiki/Headless-installation-on-Debian-or-Ubuntu).

---

<div class="post-metadata">

**Author:** ![bhlevca](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@bhlevca](https://forum.duplicati.com/u/bhlevca)\
**Post date:** [January 8, 2020, 3:33am UTC](https://forum.duplicati.com/t/linux-run-as-service/246/5 "2020-01-08T03:33:23Z")

</div>

Thanks, this was a great tutorial.

---

<div class="post-metadata">

**Author:** ![pedroeduardo](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/p/d26b3c/32.png) [@pedroeduardo](https://forum.duplicati.com/u/pedroeduardo)\
**Post date:** [April 17, 2020, 4:47pm UTC](https://forum.duplicati.com/t/linux-run-as-service/246/6 "2020-04-17T16:47:48Z")

</div>

Hi, I do not know how to do this. Can you help me with a beginner tutor…

I am using LINUX OPEN SUSE LEAP. Thank you!

> [@kenkendk](#):
>
> If you cannot (or will not) use the systemd script, you can simply run
> 
> ```plaintext
> mono Duplicati.Server.exe &
> 
> ```
> 
> In an init.rc script or similar.

---

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [April 21, 2020, 3:10pm UTC](https://forum.duplicati.com/t/linux-run-as-service/246/7 "2020-04-21T15:10:17Z")

</div>

Welcome to the forum @pedroeduardo

It would be best if a user with openSUSE Leap helped, if this gets OS-specific… High-level info is:

[mono](https://software.opensuse.org/package/mono-complete?search_term=mono-complete) at version 5 or above is required. That lets you run the `mono` command. The file might be in `/usr/lib/duplicati` but I’m unsure where yours is. If you have `/usr/bin/duplicati-server`, examining it with a text editor would probably show, or you could run that script to start the server.

`/usr/bin/duplicati` is usually a server with a tray icon that shows status via its style and colors.

Starting at boot would be done by configuring systemd, typically done via the systemctl command.  
[openSUSE:Systemd tips](https://en.opensuse.org/openSUSE:Systemd_tips)  
[The systemd Daemon](https://doc.opensuse.org/documentation/leap/reference/html/book.opensuse.reference/cha-systemd.html)  
You’d probably do things like `sudo systemctl start duplicati` (or stop, enable, disable, etc.)

Examples from other systems:

[Installing Duplicati on Linux (Ubuntu / LinuxLite)](https://forum.duplicati.com/t/installing-duplicati-on-linux-ubuntu-linuxlite/743)  
[How to install Duplicati on Debian Stretch](https://forum.duplicati.com/t/how-to-install-duplicati-on-debian-stretch/4722)
