{"action":"created","issue":{"url":"https://api.github.com/repos/tidusjar/PlexRequests.Net/issues/220","repository_url":"https://api.github.com/repos/tidusjar/PlexRequests.Net","labels_url":"https://api.github.com/repos/tidusjar/PlexRequests.Net/issues/220/labels{/name}","comments_url":"https://api.github.com/repos/tidusjar/PlexRequests.Net/issues/220/comments","events_url":"https://api.github.com/repos/tidusjar/PlexRequests.Net/issues/220/events","html_url":"https://github.com/tidusjar/PlexRequests.Net/issues/220","id":154945748,"number":220,"title":"Consider removing Signum.SIGHUP from the signals to terminate list","user":{"login":"janabimustafa","id":8259258,"avatar_url":"https://avatars.githubusercontent.com/u/8259258?v=3","gravatar_id":"","url":"https://api.github.com/users/janabimustafa","html_url":"https://github.com/janabimustafa","followers_url":"https://api.github.com/users/janabimustafa/followers","following_url":"https://api.github.com/users/janabimustafa/following{/other_user}","gists_url":"https://api.github.com/users/janabimustafa/gists{/gist_id}","starred_url":"https://api.github.com/users/janabimustafa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janabimustafa/subscriptions","organizations_url":"https://api.github.com/users/janabimustafa/orgs","repos_url":"https://api.github.com/users/janabimustafa/repos","events_url":"https://api.github.com/users/janabimustafa/events{/privacy}","received_events_url":"https://api.github.com/users/janabimustafa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-16T01:37:14Z","updated_at":"2016-05-17T09:12:38Z","closed_at":null,"body":"If this is a bug report please make sure you have filled the following in:\r\n(If it's not a bug and a feature request then just remove the below)\r\n\r\n#### Plex Requests.Net Version:\r\nMaster branch.\r\n\r\n#### Operating System:\r\nFreeBSD-FreeNAS 9.10 STABLE\r\n\r\n#### Mono Version:\r\n4.2.2\r\n\r\n\r\n#### Reproduction Steps:\r\nStart the PlexRequests.exe on FreeBSD using\r\n```\r\nmono PlexRequests.exe &\r\n```\r\nnotice how the application shuts down as soon as it starts. This is important because of the way FreeBSD's init scripts work and how they cannot allow foreground blocking services. \r\nRemoving \r\n```csharp\r\nnew UnixSignal(Signum.SIGHUP) \r\n```\r\nfrom \r\n```csharp\r\nUnixSignal.WaitAny( new[] { new UnixSignal(Signum.SIGINT), new UnixSignal(Signum.SIGTERM), new UnixSignal(Signum.SIGQUIT), new UnixSignal(Signum.SIGHUP) });\r\n```\r\nfixes the issue. I think."},"comment":{"url":"https://api.github.com/repos/tidusjar/PlexRequests.Net/issues/comments/219662320","html_url":"https://github.com/tidusjar/PlexRequests.Net/issues/220#issuecomment-219662320","issue_url":"https://api.github.com/repos/tidusjar/PlexRequests.Net/issues/220","id":219662320,"user":{"login":"janabimustafa","id":8259258,"avatar_url":"https://avatars.githubusercontent.com/u/8259258?v=3","gravatar_id":"","url":"https://api.github.com/users/janabimustafa","html_url":"https://github.com/janabimustafa","followers_url":"https://api.github.com/users/janabimustafa/followers","following_url":"https://api.github.com/users/janabimustafa/following{/other_user}","gists_url":"https://api.github.com/users/janabimustafa/gists{/gist_id}","starred_url":"https://api.github.com/users/janabimustafa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janabimustafa/subscriptions","organizations_url":"https://api.github.com/users/janabimustafa/orgs","repos_url":"https://api.github.com/users/janabimustafa/repos","events_url":"https://api.github.com/users/janabimustafa/events{/privacy}","received_events_url":"https://api.github.com/users/janabimustafa/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T09:12:38Z","updated_at":"2016-05-17T09:12:38Z","body":"It depends on how you attempt to kill it. By default, if you are using the kill {pid} command, the SIGTERM signal is sent. \r\nThis is the definition of SIGHUP from Wikipedia:\r\n\r\n>The SIGHUP signal is sent to a process when its controlling terminal is closed. It was originally designed to notify the process of a serial line drop (a hangup). In modern systems, this signal usually means that the controlling pseudo or virtual terminal has been closed.[3] Many daemons will reload their configuration files and reopen their logfiles instead of exiting when receiving this signal.[4] nohup is a command to make a command ignore the signal."}}