{"id":18736562,"url":"https://github.com/crazyvito11/systemd-discord-webhook-2021","last_synced_at":"2026-05-10T05:37:21.785Z","repository":{"id":104958852,"uuid":"442902795","full_name":"CrazyVito11/systemd-discord-webhook-2021","owner":"CrazyVito11","description":"NodeJS application that pushes failed systemd services to Discord","archived":false,"fork":false,"pushed_at":"2022-01-02T14:03:03.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-28T16:45:26.121Z","etag":null,"topics":["discord","logging","nodejs","systemd","systemd-service","webhook"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/CrazyVito11.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":"2021-12-29T22:13:55.000Z","updated_at":"2022-01-19T18:59:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"f96b5e57-b78d-459b-95f7-60045fe0ea61","html_url":"https://github.com/CrazyVito11/systemd-discord-webhook-2021","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrazyVito11%2Fsystemd-discord-webhook-2021","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrazyVito11%2Fsystemd-discord-webhook-2021/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrazyVito11%2Fsystemd-discord-webhook-2021/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrazyVito11%2Fsystemd-discord-webhook-2021/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CrazyVito11","download_url":"https://codeload.github.com/CrazyVito11/systemd-discord-webhook-2021/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239611993,"owners_count":19668274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["discord","logging","nodejs","systemd","systemd-service","webhook"],"created_at":"2024-11-07T15:21:28.351Z","updated_at":"2026-05-10T05:37:21.726Z","avatar_url":"https://github.com/CrazyVito11.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# systemd-discord-webhook-2021\nNodeJS application that pushes failed systemd services to Discord.\n\n## Startup parameters\nRun `node main.js --help` to see all the supported parameters and what they exactly do.\n\n## Supported programming languages\n- Javascript (NodeJS)\n\n\u003e Any systemd service will work with this application, but it won't show the stack trace and exception in the Discord message.\n\u003e You can add support for another language in `stack_trace_language_config.js`.\n\n## Implementation example\n```sh\n# The names and paths we used in this example, edit this example to match your setup\n#\n# Service name\n#     cool-application-service\n#\n# NodeJS runtime path\n#     /home/user/.nvm/versions/node/v14.18.2/bin/node\n#\n# Project location\n#     /home/user/projects/cool-application/\n#\n# Project startup script path\n#     /home/user/projects/cool-application/start_application.sh\n#\n# Systemd-discord-webhook path\n#     /home/user/projects/systemd-discord-webhook-2021/main.js\n#\n# Discord Webhook URL\n#     https://discordapp.com/api/webhooks/XXXXXXXXXXXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n\n\n[Unit]\nDescription=\"Our cool NodeJS application that processes stuff in the background\"\n\n[Service]\nWorkingDirectory=/home/user/projects/cool-application/\nExecStart=/home/user/projects/cool-application/start_application.sh\n\nRestart=on-failure\nRestartSec=5s\n\n# Pay attention to this line, this is where you call the systemd-discord-webhook application to send the notification\nExecStopPost=/bin/sh -c \"if [ $$EXIT_STATUS != 0 ]; then /home/user/.nvm/versions/node/v14.18.2/bin/node /home/user/projects/systemd-discord-webhook-2021/main.js cool-application-service https://discordapp.com/api/webhooks/XXXXXXXXXXXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --language js; fi\"\n\n\n[Install]\nWantedBy=default.target\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazyvito11%2Fsystemd-discord-webhook-2021","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrazyvito11%2Fsystemd-discord-webhook-2021","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazyvito11%2Fsystemd-discord-webhook-2021/lists"}