{"id":17121420,"url":"https://github.com/hellojukay/systemd-demo","last_synced_at":"2026-01-25T15:01:51.499Z","repository":{"id":140615773,"uuid":"185165962","full_name":"hellojukay/systemd-demo","owner":"hellojukay","description":"This is a golang demo project to create a service by systemd,.","archived":false,"fork":false,"pushed_at":"2020-06-24T08:58:22.000Z","size":3657,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-25T05:30:48.512Z","etag":null,"topics":["golang","service","systemctl","systemd"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hellojukay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-06T09:30:09.000Z","updated_at":"2020-06-30T03:57:14.000Z","dependencies_parsed_at":"2024-06-19T09:09:54.157Z","dependency_job_id":"8563ab85-c209-4d81-a095-a2677edb1240","html_url":"https://github.com/hellojukay/systemd-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hellojukay/systemd-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellojukay%2Fsystemd-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellojukay%2Fsystemd-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellojukay%2Fsystemd-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellojukay%2Fsystemd-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellojukay","download_url":"https://codeload.github.com/hellojukay/systemd-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellojukay%2Fsystemd-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28754807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T13:59:49.818Z","status":"ssl_error","status_checked_at":"2026-01-25T13:59:33.728Z","response_time":113,"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":["golang","service","systemctl","systemd"],"created_at":"2024-10-14T18:02:23.225Z","updated_at":"2026-01-25T15:01:51.478Z","avatar_url":"https://github.com/hellojukay.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# systemd-demo\na systemd demo project , write by golang ,a web servoice return current time string.\n\n[![Build Status](https://travis-ci.org/hellojukay/systemd-demo.svg?branch=master)](https://travis-ci.org/hellojukay/systemd-demo)\n\n\n## How to install it\nit will build main.go , and create now.service in `/lib/systemd/system/now.service`\n```shell\nsudo bash install.sh\n```\n\n## How to run it\nafter install now.service\n```shell\nsystemctl start now.service\n```\n```shell\nhellojukay@local systemd-demo (master) $ systemctl status now\n● now.service - A web service get now time string\n   Loaded: loaded (/lib/systemd/system/now.service; enabled; vendor preset: enabled)\n   Active: active (running) since Mon 2019-05-06 17:52:35 CST; 5min ago\n Main PID: 3052 (now)\n    Tasks: 6 (limit: 4915)\n   Memory: 5.4M\n   CGroup: /system.slice/now.service\n           └─3052 /usr/bin/now\n\nWarning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.\n```\nrun with special user\n```shell\nvagrant@ubuntu-bionic systemd-demo (master) $ ps aux | grep now\nvagrant   3604  0.0  0.1 1008360 5420 ?        Ssl  03:26   0:00 /usr/bin/now\nvagrant   3866  0.0  0.0  14856  1004 pts/0    R+   03:38   0:00 grep --color=auto now\n```\naccess by curl \n```shell\nhellojukay@local systemd-demo (master) $ curl http://127.0.0.1:6000/now\n2019-05-06 18:39:25\n```\n## Auto start at boot\nit will auto start whill system started.\n```shell\nsystemctl enable now\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellojukay%2Fsystemd-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellojukay%2Fsystemd-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellojukay%2Fsystemd-demo/lists"}