User Tools

Site Tools


pages:howtos:systemd:nextcloud-desktop

Nextcloud Desktop as a user service with systemd

KDE Session Management, Autostart

  • remove Nextcloud from autostart
  • tick “start with an empty session” under “Desktop Session” in System Settings

Wait System Service

Check if the correct oneshot “wait” system service is enabled (NetworkManager in my case).

systemctl is-enabled NetworkManager-wait-online.service systemd-networkd-wait-online.service

enabled
Failed to get unit file state for systemd-networkd-wait-online.service: No such file or directory

Systemd User Service

# as user
mkdir -pv ~/.config/systemd/user/
vim ~/.config/systemd/user/nextcloud-desktop.service
[Unit]
Description=Nextcloud Desktop Client
After=network-online.target
Wants=network-online.target NetworkManager-wait-online.service

[Service]
Type=simple      
StandardOutput=journal
ExecStart=/usr/bin/nextcloud
Restart=on-failure
RestartSec=5s
LimitNOFILE=65535:65535

[Install]
WantedBy=default.target

enable the service

systemctl --user enable nextcloud-desktop.service

start the service

systemctl --user start nextcloud-desktop.service

check that the service is running

systemctl --user status nextcloud-desktop.service

—- ~~DISCUSSION~~

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
pages/howtos/systemd/nextcloud-desktop.txt · Last modified: 2021/12/09 23:34 by The Thing That Should Not Be