syncthing / syncthing/syncthing-macos

Control Syncthing when on different wifi networks

Open
#172 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement question
Dominant language
Objective-C
Stars
3.9k
Forks
203
Avg merge
3d 14h
Merged PRs (30d)
2

Description

I'm on a M1 MacBook Pro Monterey version 12.1 (21C52)
I'm using syncthing-macos version 1.18.5-1

I'm trying to safely shutdown Syncthing from the terminal and I can't get it to work. I'm a new Mac user, so it's hard for me to know if this is just user error or if I've found a bug.

When I input:
CURL -X POST -H "X-API-Key:" http://127.0.0.1:8384/rest/system/shutdown
It outputs
{"ok": "shutting down"}

So I know the command was correct, but syncthing doesn't actually shutdown.
Sometimes the syncthing-macos menu bar icon very briefly shows syncthing as offline, so I'm wondering if syncthing-macos is restarting syncthing.

Does syncthing-macos automatically restart syncthing if it detects it's not running, even if syncthing got a valid shutdown command?

Is this it's intended behavior?

I also tried to add pkill syncthing after the shutdown command to kill syncthing-macos before it restarts syncthing, but pkill syncthing doesn't seem to actually kill the app.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files or tests are named. Start by reproducing the REST shutdown request from the terminal and observe the syncthing-macos menu bar icon and process state; determine whether the application restarts Syncthing after a valid shutdown. Done means the intended behavior is established and the shutdown behavior is corrected or clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, objective-c
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.