{"id":15431421,"url":"https://github.com/mkg20001/ipfs-node-restart","last_synced_at":"2026-05-04T00:31:49.383Z","repository":{"id":53165024,"uuid":"67424718","full_name":"mkg20001/ipfs-node-restart","owner":"mkg20001","description":"Reconnects/Restarts your node if you are offline","archived":false,"fork":false,"pushed_at":"2021-04-03T08:12:20.000Z","size":20,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-30T11:56:33.951Z","etag":null,"topics":["bash","ipfs","nodejs","restart-script"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mkg20001.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-05T13:47:54.000Z","updated_at":"2019-08-10T17:01:26.000Z","dependencies_parsed_at":"2022-09-14T05:52:08.389Z","dependency_job_id":null,"html_url":"https://github.com/mkg20001/ipfs-node-restart","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mkg20001/ipfs-node-restart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkg20001%2Fipfs-node-restart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkg20001%2Fipfs-node-restart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkg20001%2Fipfs-node-restart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkg20001%2Fipfs-node-restart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkg20001","download_url":"https://codeload.github.com/mkg20001/ipfs-node-restart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkg20001%2Fipfs-node-restart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32590150,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"ssl_error","status_checked_at":"2026-05-03T22:09:10.534Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","ipfs","nodejs","restart-script"],"created_at":"2024-10-01T18:22:14.761Z","updated_at":"2026-05-04T00:31:49.364Z","avatar_url":"https://github.com/mkg20001.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ipfs-reconnect\nReconnects/Restarts your node automatically if you are offline.\n\n# Usage\n```\nOptions:\n  -i, --interval        Scan Interval                   [number] [default: 1000]\n  -b, --binary          Path to IPFS binary           [string] [default: \"ipfs\"]\n  -r, --restart         Allow restart                 [boolean] [default: false]\n  -s, --restart-script  Path to restart script            [string] [default: \"\"]\n  -m, --min-nodes       Minimum nodes online               [number] [default: 4]\n  -p, --path            Path to IPFS repo [string] [default: \"/home/user/.ipfs\"]\n  -h, --help            Show help                                      [boolean]\n\nCopyright (C) 2015 Maciej Krüger\nThis is free software; see the source for copying conditions.  There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n```\n\n# Restart Script\nStart the IPFS Daemon as background - the application will wait for the script to exit\n#### Example Script (with ```screen```):\n```\nSCREEN=\"ipfs\"\nscreen -X -S $SCREEN quit 2\u003e /dev/null \u003e /dev/null #kill if running\nwaitforstop() {\n  screen -S $SCREEN -X alive 2\u003e /dev/null \u003e /dev/null\n  if [ $? -eq 0 ]; then\n    echo -n \".\"\n    sleep .25s\n    waitforstop $1\n  else\n    sleep .5s\n  fi\n}\nif [ $? -eq 0 ]; then\n  echo -n \"stopping...\"\n  waitforstop $SCREEN\n  echo \"ok\"\nfi\nwhich ipfs 2\u003e /dev/null \u003e /dev/null\nif ! [ $? -eq 0 ]; then export PATH=\"/usr/local/bin/:$PATH\"; fi #fix missing PATH location\necho -n \"restarting...\"\nscreen -dmS $SCREEN ipfs daemon #start\nwaitfor() {\n  screen -S $SCREEN -X alive 2\u003e /dev/null \u003e /dev/null\n  if [ $? -ne 0 ]; then\n    echo \"failed!\"\n    exit 2\n  fi\n  curl $1  --connect-timeout 1 -m 1 -s 2\u003e/dev/null \u003e /dev/null #try to load webui\n  if [ $? -ne 0 ]; then\n  echo -n \".\"\n    sleep .25s\n    waitfor $1\n  else\n    echo \"ok\"\n    exit 0\n  fi\n}\nwaitfor \"localhost:5001/webui\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkg20001%2Fipfs-node-restart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkg20001%2Fipfs-node-restart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkg20001%2Fipfs-node-restart/lists"}