
Hallo, ich habe syncthng auf einem Leap 15.3 System installiert, und möchte dass das Programm beim Systemstart und nach Beenden neu startet. In der Doku findet man einen Hinweis auf einen systemd service. Den habe ich nach /etc/systemd kopiert und mit: systemctl enable syncthing@dirk.service wie in der Doku angegeben aufgerufen. Als Ergebnis bekomme ich: "Failed to enable unit: File syncthing@dirk.service: Invalid argument" Wie macht ihr das? -- Dirk

Am Sonntag, 24. März 2024, 20:27:42 CET schrieb Dirk Meier:
Installiert und einfach das syncthing@service nach /etc/systemd/system kopiert, nichts eingestellt und das hier: systemctl enable syncthing@stephan.service Created symlink /etc/systemd/system/multi-user.target.wants/syncthing@stephan.service → /etc/systemd/system/syncthing@.service. systemctl start syncthing@stephan.service systemctl status syncthing@stephan.service ● syncthing@stephan.service - Syncthing - Open Source Continuous File Synchronization for stephan Loaded: loaded (/etc/systemd/system/syncthing@.service; enabled; vendor preset: disabled) Active: active (running) since Sun 2024-03-24 21:23:19 CET; 31s ago Docs: man:syncthing(1) Main PID: 9161 (syncthing) Tasks: 26 (limit: 4915) CGroup: /system.slice/system-syncthing.slice/syncthing@stephan.service ├─ 9161 /usr/bin/syncthing serve --no-browser --no-restart --logflags=0 └─ 9171 /usr/bin/syncthing serve --no-browser --no-restart --logflags=0 Mär 24 21:23:21 linux64 syncthing[9161]: [YHK2U] INFO: TCP listener ([::]:22000) starting Mär 24 21:23:21 linux64 syncthing[9161]: [YHK2U] INFO: Ready to synchronize "Default Folder" (default) (sendreceive) Mär 24 21:23:21 linux64 syncthing[9161]: [YHK2U] INFO: QUIC listener ([::]:22000) starting Mär 24 21:23:21 linux64 syncthing[9161]: [YHK2U] INFO: Completed initial scan of sendreceive folder "Default Folder" (default) Mär 24 21:23:21 linux64 syncthing[9161]: [YHK2U] INFO: GUI and API listening on 127.0.0.1:8384 Mär 24 21:23:21 linux64 syncthing[9161]: [YHK2U] INFO: Access the GUI via the following URL: http://127.0.0.1:8384/ Mär 24 21:23:21 linux64 syncthing[9161]: [YHK2U] INFO: My name is "linux64" Mär 24 21:23:40 linux64 syncthing[9161]: [YHK2U] INFO: quic://0.0.0.0:22000 detected NAT type: Port restricted NAT Mär 24 21:23:40 linux64 syncthing[9161]: [YHK2U] INFO: quic://0.0.0.0:22000 resolved external address quic://92.196.250.35:22000 (via stun.syncthing.net:3478) Mär 24 21:23:41 linux64 syncthing[9161]: [YHK2U] INFO: Detected 1 NAT service Jetzt wird es wieder deinstalliert. Stephan

Am Sonntag, 24. März 2024, 21:26:16 CEST schrieb Stephan Hemeier:
Ich mache genau das gleiche: *:/etc/systemd/system #* ls syncth* syncthing@.service *#* systemctl enable syncthing@dirk.service Failed to enable unit: File syncthing@dirk.service: Invalid argument Welche Leap Version verwndest du? -- Dirk

Am Montag, 1. April 2024, 17:33:45 CEST schrieb Dirk Meier:
Welche Leap Version verwndest du? Hier noch einmal meine Schritte:
linux64:/home/stephan # lsb-release -id Distributor ID: openSUSE Description: openSUSE Leap 15.5 linux64:/home/stephan # zypper in syncthing Repository-Daten werden geladen... Installierte Pakete werden gelesen... Paketabhängigkeiten werden aufgelöst... Das folgende NEUE Paket wird installiert: syncthing 1 neues Paket zu installieren. Gesamtgröße des Downloads: 7,9 MiB. Bereits im Cache gespeichert: 0 B. Nach der Operation werden zusätzlich 24,5 MiB belegt. Continue? [j/n/v/...? zeigt alle Optionen] (j): Abrufen: syncthing-1.27.3-bp155.2.6.1.x86_64 (Update repository of openSUSE Backports) (1/1), 7,9 MiB Abrufen: syncthing-1.27.3-bp155.2.6.1.x86_64.rpm .............................................................................................................................................[fertig (5,8 MiB/s)] Überprüfung auf Dateikonflikte läuft: ....................................................................................................................................................................[fertig] (1/1) Installieren: syncthing-1.27.3-bp155.2.6.1.x86_64 ..................................................................................................................................................[fertig] linux64:/home/stephan # cp /usr/lib/systemd/system/syncthing@.service /etc/systemd/system/ linux64:/home/stephan # systemctl enable syncthing@stephan.service Created symlink /etc/systemd/system/multi-user.target.wants/syncthing@stephan.service → /etc/systemd/system/syncthing@.service. linux64:/home/stephan # systemctl start syncthing@stephan.service linux64:/home/stephan # systemctl status syncthing@stephan.service ● syncthing@stephan.service - Syncthing - Open Source Continuous File Synchronization for stephan Loaded: loaded (/etc/systemd/system/syncthing@.service; enabled; vendor preset: disabled) Active: active (running) since Mon 2024-04-01 19:02:52 CEST; 3min 37s ago Docs: man:syncthing(1) Main PID: 3683 (syncthing) Tasks: 30 (limit: 4915) CGroup: /system.slice/system-syncthing.slice/syncthing@stephan.service ├─ 3683 /usr/bin/syncthing serve --no-browser --no-restart --logflags=0 └─ 3693 /usr/bin/syncthing serve --no-browser --no-restart --logflags=0 Apr 01 19:02:54 linux64 syncthing[3683]: [YHK2U] INFO: Completed initial scan of sendreceive folder "Default Folder" (default) Apr 01 19:02:54 linux64 syncthing[3683]: [YHK2U] INFO: GUI and API listening on 127.0.0.1:8384 Apr 01 19:02:54 linux64 syncthing[3683]: [YHK2U] INFO: Access the GUI via the following URL: http://127.0.0.1:8384/ Apr 01 19:02:54 linux64 syncthing[3683]: [YHK2U] INFO: My name is "linux64" Apr 01 19:02:54 linux64 syncthing[3683]: [YHK2U] INFO: TCP listener ([::]:22000) starting Apr 01 19:02:54 linux64 syncthing[3683]: [YHK2U] INFO: QUIC listener ([::]:22000) starting Apr 01 19:03:13 linux64 syncthing[3683]: [YHK2U] INFO: quic://0.0.0.0:22000 detected NAT type: Port restricted NAT Apr 01 19:03:13 linux64 syncthing[3683]: [YHK2U] INFO: quic://0.0.0.0:22000 resolved external address quic://xxxxxxxxx:22000 (via stun.syncthing.net:3478) Apr 01 19:03:14 linux64 syncthing[3683]: [YHK2U] INFO: Detected 1 NAT service Apr 01 19:03:32 linux64 syncthing[3683]: [YHK2U] INFO: Joined relay relay://yyyyyyyy:22067 Gruß Stephan......

Am Sonntag, 24. März 2024, 20:27:42 CET schrieb Dirk Meier:
Installiert und einfach das syncthing@service nach /etc/systemd/system kopiert, nichts eingestellt und das hier: systemctl enable syncthing@stephan.service Created symlink /etc/systemd/system/multi-user.target.wants/syncthing@stephan.service → /etc/systemd/system/syncthing@.service. systemctl start syncthing@stephan.service systemctl status syncthing@stephan.service ● syncthing@stephan.service - Syncthing - Open Source Continuous File Synchronization for stephan Loaded: loaded (/etc/systemd/system/syncthing@.service; enabled; vendor preset: disabled) Active: active (running) since Sun 2024-03-24 21:23:19 CET; 31s ago Docs: man:syncthing(1) Main PID: 9161 (syncthing) Tasks: 26 (limit: 4915) CGroup: /system.slice/system-syncthing.slice/syncthing@stephan.service ├─ 9161 /usr/bin/syncthing serve --no-browser --no-restart --logflags=0 └─ 9171 /usr/bin/syncthing serve --no-browser --no-restart --logflags=0 Mär 24 21:23:21 linux64 syncthing[9161]: [YHK2U] INFO: TCP listener ([::]:22000) starting Mär 24 21:23:21 linux64 syncthing[9161]: [YHK2U] INFO: Ready to synchronize "Default Folder" (default) (sendreceive) Mär 24 21:23:21 linux64 syncthing[9161]: [YHK2U] INFO: QUIC listener ([::]:22000) starting Mär 24 21:23:21 linux64 syncthing[9161]: [YHK2U] INFO: Completed initial scan of sendreceive folder "Default Folder" (default) Mär 24 21:23:21 linux64 syncthing[9161]: [YHK2U] INFO: GUI and API listening on 127.0.0.1:8384 Mär 24 21:23:21 linux64 syncthing[9161]: [YHK2U] INFO: Access the GUI via the following URL: http://127.0.0.1:8384/ Mär 24 21:23:21 linux64 syncthing[9161]: [YHK2U] INFO: My name is "linux64" Mär 24 21:23:40 linux64 syncthing[9161]: [YHK2U] INFO: quic://0.0.0.0:22000 detected NAT type: Port restricted NAT Mär 24 21:23:40 linux64 syncthing[9161]: [YHK2U] INFO: quic://0.0.0.0:22000 resolved external address quic://92.196.250.35:22000 (via stun.syncthing.net:3478) Mär 24 21:23:41 linux64 syncthing[9161]: [YHK2U] INFO: Detected 1 NAT service Jetzt wird es wieder deinstalliert. Stephan

Am Sonntag, 24. März 2024, 21:26:16 CEST schrieb Stephan Hemeier:
Ich mache genau das gleiche: *:/etc/systemd/system #* ls syncth* syncthing@.service *#* systemctl enable syncthing@dirk.service Failed to enable unit: File syncthing@dirk.service: Invalid argument Welche Leap Version verwndest du? -- Dirk

Am Montag, 1. April 2024, 17:33:45 CEST schrieb Dirk Meier:
Welche Leap Version verwndest du? Hier noch einmal meine Schritte:
linux64:/home/stephan # lsb-release -id Distributor ID: openSUSE Description: openSUSE Leap 15.5 linux64:/home/stephan # zypper in syncthing Repository-Daten werden geladen... Installierte Pakete werden gelesen... Paketabhängigkeiten werden aufgelöst... Das folgende NEUE Paket wird installiert: syncthing 1 neues Paket zu installieren. Gesamtgröße des Downloads: 7,9 MiB. Bereits im Cache gespeichert: 0 B. Nach der Operation werden zusätzlich 24,5 MiB belegt. Continue? [j/n/v/...? zeigt alle Optionen] (j): Abrufen: syncthing-1.27.3-bp155.2.6.1.x86_64 (Update repository of openSUSE Backports) (1/1), 7,9 MiB Abrufen: syncthing-1.27.3-bp155.2.6.1.x86_64.rpm .............................................................................................................................................[fertig (5,8 MiB/s)] Überprüfung auf Dateikonflikte läuft: ....................................................................................................................................................................[fertig] (1/1) Installieren: syncthing-1.27.3-bp155.2.6.1.x86_64 ..................................................................................................................................................[fertig] linux64:/home/stephan # cp /usr/lib/systemd/system/syncthing@.service /etc/systemd/system/ linux64:/home/stephan # systemctl enable syncthing@stephan.service Created symlink /etc/systemd/system/multi-user.target.wants/syncthing@stephan.service → /etc/systemd/system/syncthing@.service. linux64:/home/stephan # systemctl start syncthing@stephan.service linux64:/home/stephan # systemctl status syncthing@stephan.service ● syncthing@stephan.service - Syncthing - Open Source Continuous File Synchronization for stephan Loaded: loaded (/etc/systemd/system/syncthing@.service; enabled; vendor preset: disabled) Active: active (running) since Mon 2024-04-01 19:02:52 CEST; 3min 37s ago Docs: man:syncthing(1) Main PID: 3683 (syncthing) Tasks: 30 (limit: 4915) CGroup: /system.slice/system-syncthing.slice/syncthing@stephan.service ├─ 3683 /usr/bin/syncthing serve --no-browser --no-restart --logflags=0 └─ 3693 /usr/bin/syncthing serve --no-browser --no-restart --logflags=0 Apr 01 19:02:54 linux64 syncthing[3683]: [YHK2U] INFO: Completed initial scan of sendreceive folder "Default Folder" (default) Apr 01 19:02:54 linux64 syncthing[3683]: [YHK2U] INFO: GUI and API listening on 127.0.0.1:8384 Apr 01 19:02:54 linux64 syncthing[3683]: [YHK2U] INFO: Access the GUI via the following URL: http://127.0.0.1:8384/ Apr 01 19:02:54 linux64 syncthing[3683]: [YHK2U] INFO: My name is "linux64" Apr 01 19:02:54 linux64 syncthing[3683]: [YHK2U] INFO: TCP listener ([::]:22000) starting Apr 01 19:02:54 linux64 syncthing[3683]: [YHK2U] INFO: QUIC listener ([::]:22000) starting Apr 01 19:03:13 linux64 syncthing[3683]: [YHK2U] INFO: quic://0.0.0.0:22000 detected NAT type: Port restricted NAT Apr 01 19:03:13 linux64 syncthing[3683]: [YHK2U] INFO: quic://0.0.0.0:22000 resolved external address quic://xxxxxxxxx:22000 (via stun.syncthing.net:3478) Apr 01 19:03:14 linux64 syncthing[3683]: [YHK2U] INFO: Detected 1 NAT service Apr 01 19:03:32 linux64 syncthing[3683]: [YHK2U] INFO: Joined relay relay://yyyyyyyy:22067 Gruß Stephan......
participants (5)
-
Dirk Meier
-
Eric Schirra
-
mh@mike.franken.de
-
Stephan Hemeier
-
Ulf Volmer