{"action":"closed","issue":{"url":"https://api.github.com/repos/ElementsProject/lightning/issues/1338","repository_url":"https://api.github.com/repos/ElementsProject/lightning","labels_url":"https://api.github.com/repos/ElementsProject/lightning/issues/1338/labels{/name}","comments_url":"https://api.github.com/repos/ElementsProject/lightning/issues/1338/comments","events_url":"https://api.github.com/repos/ElementsProject/lightning/issues/1338/events","html_url":"https://github.com/ElementsProject/lightning/issues/1338","id":312197650,"number":1338,"title":"Pid-file issue when creating `systemd` service","user":{"login":"torkelrogstad","id":16610775,"avatar_url":"https://avatars2.githubusercontent.com/u/16610775?v=4","gravatar_id":"","url":"https://api.github.com/users/torkelrogstad","html_url":"https://github.com/torkelrogstad","followers_url":"https://api.github.com/users/torkelrogstad/followers","following_url":"https://api.github.com/users/torkelrogstad/following{/other_user}","gists_url":"https://api.github.com/users/torkelrogstad/gists{/gist_id}","starred_url":"https://api.github.com/users/torkelrogstad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torkelrogstad/subscriptions","organizations_url":"https://api.github.com/users/torkelrogstad/orgs","repos_url":"https://api.github.com/users/torkelrogstad/repos","events_url":"https://api.github.com/users/torkelrogstad/events{/privacy}","received_events_url":"https://api.github.com/users/torkelrogstad/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"cdecker","id":120117,"avatar_url":"https://avatars2.githubusercontent.com/u/120117?v=4","gravatar_id":"","url":"https://api.github.com/users/cdecker","html_url":"https://github.com/cdecker","followers_url":"https://api.github.com/users/cdecker/followers","following_url":"https://api.github.com/users/cdecker/following{/other_user}","gists_url":"https://api.github.com/users/cdecker/gists{/gist_id}","starred_url":"https://api.github.com/users/cdecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdecker/subscriptions","organizations_url":"https://api.github.com/users/cdecker/orgs","repos_url":"https://api.github.com/users/cdecker/repos","events_url":"https://api.github.com/users/cdecker/events{/privacy}","received_events_url":"https://api.github.com/users/cdecker/received_events","type":"User","site_admin":false},"assignees":[{"login":"cdecker","id":120117,"avatar_url":"https://avatars2.githubusercontent.com/u/120117?v=4","gravatar_id":"","url":"https://api.github.com/users/cdecker","html_url":"https://github.com/cdecker","followers_url":"https://api.github.com/users/cdecker/followers","following_url":"https://api.github.com/users/cdecker/following{/other_user}","gists_url":"https://api.github.com/users/cdecker/gists{/gist_id}","starred_url":"https://api.github.com/users/cdecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdecker/subscriptions","organizations_url":"https://api.github.com/users/cdecker/orgs","repos_url":"https://api.github.com/users/cdecker/repos","events_url":"https://api.github.com/users/cdecker/events{/privacy}","received_events_url":"https://api.github.com/users/cdecker/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-04-07T11:03:49Z","updated_at":"2018-04-07T17:49:41Z","closed_at":"2018-04-07T17:49:41Z","author_association":"NONE","body":"### Issue and Steps to Reproduce\r\n<!-- Describe your issue and tell us how to reproduce it (include any useful information). -->\r\nI'm trying to setup `lightningd` as a background service which I can run through `systemd`. I want to have my LN node running at all times on my VPS, and this seems like a logical way to do it. Please correct me if that's not the case.\r\n\r\nThis is how `/etc/systemd/system/c-lightning.service` looks:\r\n```\r\n[Unit]\r\nDescription=Lightning network daemon\r\nAfter=network.target\r\n\r\n[Service]\r\nExecStart=/usr/local/bin/lightningd --network bitcoin --log-file /home/torkel/.lightning/debug.log --daemon --pid-file /run/lightningd/lightningd.pid\r\nRuntimeDirectory=lightningd\r\nUser=torkel\r\nType=forking\r\nPIDFile=/run/lightningd/lightningd.pid\r\n```\r\n\r\nAfter `systemctl start c-lightning`, the command hangs without exiting. `lightnind` starts up without issue, and `getinfo` returns the usual JSON.\r\n\r\nChecking the PID of `lightningd`, I get 8967. However, `/run/lightningd/lightning.pid` contains 8951.\r\n\r\nI believe the issue here is that `lightningd` writes the wrong PID to the file, but I know very little about these sort of issues. Any help would be much appreciated.\r\n\r\nEDIT: I realized I don't have to specify a PID-file for `systemd` to work. I'm unfamiliar with all of this, so I just assumed so since that was how my `bitcoind` service worked. In that case, this issue might not be that big of a deal, or even a issue at all.\r\n"}}
{"actor":{"display_login":"cdecker"}}