{"action":"created","issue":{"url":"https://api.github.com/repos/libremesh/lime-packages/issues/310","repository_url":"https://api.github.com/repos/libremesh/lime-packages","labels_url":"https://api.github.com/repos/libremesh/lime-packages/issues/310/labels{/name}","comments_url":"https://api.github.com/repos/libremesh/lime-packages/issues/310/comments","events_url":"https://api.github.com/repos/libremesh/lime-packages/issues/310/events","html_url":"https://github.com/libremesh/lime-packages/issues/310","id":293562631,"number":310,"title":"safe-reboot: Add notification to all console users that safe-reboot is running","user":{"login":"nicopace","id":1136597,"avatar_url":"https://avatars0.githubusercontent.com/u/1136597?v=4","gravatar_id":"","url":"https://api.github.com/users/nicopace","html_url":"https://github.com/nicopace","followers_url":"https://api.github.com/users/nicopace/followers","following_url":"https://api.github.com/users/nicopace/following{/other_user}","gists_url":"https://api.github.com/users/nicopace/gists{/gist_id}","starred_url":"https://api.github.com/users/nicopace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicopace/subscriptions","organizations_url":"https://api.github.com/users/nicopace/orgs","repos_url":"https://api.github.com/users/nicopace/repos","events_url":"https://api.github.com/users/nicopace/events{/privacy}","received_events_url":"https://api.github.com/users/nicopace/received_events","type":"User","site_admin":false},"labels":[{"id":719806729,"url":"https://api.github.com/repos/libremesh/lime-packages/labels/easy%20to%20solve","name":"easy to solve","color":"6ed841","default":false},{"id":39320706,"url":"https://api.github.com/repos/libremesh/lime-packages/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":626803723,"url":"https://api.github.com/repos/libremesh/lime-packages/labels/good%20first%20issue","name":"good first issue","color":"c2e0c6","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-01T15:03:03Z","updated_at":"2018-02-02T10:13:42Z","closed_at":null,"author_association":"OWNER","body":"If safe-reboot is running it is hard, even for the same user that is using it, to know when it will reboot the system.\r\n\r\nIt would be great if it can notify all users connected that it will reboot the system and how to prevent it or react to it.\r\n\r\nI think it could be added here:\r\nhttps://github.com/libremesh/lime-packages/blob/feb3b8996fe8e008ff391dd6feef9a6f11225dfa/packages/safe-reboot/files/usr/sbin/safe-reboot#L100\r\n\r\nThis is the function that it could use to notify:\r\n```bash\r\nfunction message_to_all_loggedin_users {\r\n  message=\"$1\";\r\n  for pts in `ls /dev/pts/`; do\r\n    echo \"$message\" > /dev/pts/$pts;\r\n  done;\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/libremesh/lime-packages/issues/comments/362544755","html_url":"https://github.com/libremesh/lime-packages/issues/310#issuecomment-362544755","issue_url":"https://api.github.com/repos/libremesh/lime-packages/issues/310","id":362544755,"user":{"login":"ilario","id":1329018,"avatar_url":"https://avatars1.githubusercontent.com/u/1329018?v=4","gravatar_id":"","url":"https://api.github.com/users/ilario","html_url":"https://github.com/ilario","followers_url":"https://api.github.com/users/ilario/followers","following_url":"https://api.github.com/users/ilario/following{/other_user}","gists_url":"https://api.github.com/users/ilario/gists{/gist_id}","starred_url":"https://api.github.com/users/ilario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilario/subscriptions","organizations_url":"https://api.github.com/users/ilario/orgs","repos_url":"https://api.github.com/users/ilario/repos","events_url":"https://api.github.com/users/ilario/events{/privacy}","received_events_url":"https://api.github.com/users/ilario/received_events","type":"User","site_admin":false},"created_at":"2018-02-02T10:13:42Z","updated_at":"2018-02-02T10:13:42Z","author_association":"OWNER","body":"@nicopace did you see #238 ?"}}
{"actor":{"display_login":"ilario"}}