Skip to content

Instantly share code, notes, and snippets.

@lheckemann
Created June 7, 2018 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lheckemann/e0c8baa077c8da54c0b4f40c95d3a297 to your computer and use it in GitHub Desktop.
Save lheckemann/e0c8baa077c8da54c0b4f40c95d3a297 to your computer and use it in GitHub Desktop.
[linus@usbdisk:~/.config/systemd/user]$ systemctl --user cat syncthing
# /home/linus/.config/systemd/user/default.target.wants/syncthing.service
[Unit]
Description=Syncthing
[Install]
WantedBy=default.target
[Service]
Type=simple
ExecStart=$HOME/.nix-profile/bin/syncthing
[linus@usbdisk:~/.config/systemd/user]$ $HOME/.nix-profile/bin/syncthing
[monitor] 16:20:29 INFO: Starting syncthing
[X3D7Q] 16:20:29 INFO: syncthing v0.14.46 "Dysprosium Dragonfly" (go1.10.1 linux-amd64) nix@nix 1970-01-01 00:00:01 UTC [noupgrade]
[X3D7Q] 16:20:29 INFO: My ID: X3D7QGX-J5NK64R-HEXQSMV-QIZRWSO-OSSI25X-N22LSI6-GV2VLTW-N3XD3AE
^C[monitor] 16:20:29 INFO: Signal 2 received; exiting
[linus@usbdisk:~/.config/systemd/user]$ systemctl --user start syncthing
Failed to start syncthing.service: Unit syncthing.service is not loaded properly: Exec format error.
See user logs and 'systemctl --user status syncthing.service' for details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment