{"action":"closed","issue":{"url":"https://api.github.com/repos/syncthing/relaysrv/issues/38","repository_url":"https://api.github.com/repos/syncthing/relaysrv","labels_url":"https://api.github.com/repos/syncthing/relaysrv/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/syncthing/relaysrv/issues/38/comments","events_url":"https://api.github.com/repos/syncthing/relaysrv/issues/38/events","html_url":"https://github.com/syncthing/relaysrv/issues/38","id":151750765,"number":38,"title":"Can not launch via systemd","user":{"login":"luqasz","id":925215,"avatar_url":"https://avatars.githubusercontent.com/u/925215?v=3","gravatar_id":"","url":"https://api.github.com/users/luqasz","html_url":"https://github.com/luqasz","followers_url":"https://api.github.com/users/luqasz/followers","following_url":"https://api.github.com/users/luqasz/following{/other_user}","gists_url":"https://api.github.com/users/luqasz/gists{/gist_id}","starred_url":"https://api.github.com/users/luqasz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luqasz/subscriptions","organizations_url":"https://api.github.com/users/luqasz/orgs","repos_url":"https://api.github.com/users/luqasz/repos","events_url":"https://api.github.com/users/luqasz/events{/privacy}","received_events_url":"https://api.github.com/users/luqasz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-28T21:45:35Z","updated_at":"2016-04-28T22:03:12Z","closed_at":"2016-04-28T22:03:12Z","body":"Hi\r\n\r\nI am using debian jessie and can not launch relay via systemd:\r\n```\r\n[Unit]\r\nDescription=Syncthing relay server\r\nAfter=network.target\r\n\r\n[Service]\r\nUser=syncthing-relaysrv\r\nGroup=nogroup\r\nExecStart=/usr/bin/relaysrv -keys /etc/syncthing-relaysrv\r\nWorkingDirectory=/var/lib/syncthing-relaysrv\r\nRootDirectory=/var/lib/syncthing-relaysrv\r\n\r\nPrivateTmp=true\r\nProtectSystem=full\r\nProtectHome=true\r\nNoNewPrivileges=true\r\n\r\n[Install]\r\nWantedBy=multi-user.target\r\n```\r\n```\r\nls -l  /etc | grep relay\r\ndrwxr-xr-x 2 syncthing-relaysrv nogroup  4096 kwi 28 23:04 syncthing-relaysrv\r\n```\r\n```\r\nls -l  /var/lib | grep relay\r\ndrwxr-xr-x 2 syncthing-relaysrv nogroup  4096 kwi 28 22:30 syncthing-relaysrv\r\n```\r\nAfter doing `systemctl start syncthing-relaysrv`\r\n```\r\nsystemctl status syncthing-relaysrv\r\n● syncthing-relaysrv.service - Syncthing relay server\r\n   Loaded: loaded (/etc/systemd/system/syncthing-relaysrv.service; enabled)\r\n   Active: failed (Result: exit-code) since czw 2016-04-28 23:02:01 CEST; 39min ago\r\n  Process: 4693 ExecStart=/usr/bin/relaysrv -keys /etc/syncthing-relaysrv (code=exited, status=200/CHDIR)\r\n Main PID: 4693 (code=exited, status=200/CHDIR)\r\n```\r\nI can launch it (If I change users shell to `/bin/bash`) manually from `syncthing-relaysrv` user. Any idea why I can not launch it from systemd ?"}}