{"id":25833940,"url":"https://github.com/dave-carter-uk/apps-stop-start-control","last_synced_at":"2026-04-13T21:32:27.245Z","repository":{"id":277578524,"uuid":"932872092","full_name":"dave-carter-uk/Apps-Stop-Start-Control","owner":"dave-carter-uk","description":"Framework to start/stop and check applications running on a host","archived":false,"fork":false,"pushed_at":"2025-02-17T15:19:30.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-17T20:01:12.236Z","etag":null,"topics":["automation","bash-script","powershell","sap","start","stop"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","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/dave-carter-uk.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,"zenodo":null}},"created_at":"2025-02-14T17:13:55.000Z","updated_at":"2025-02-17T15:20:05.000Z","dependencies_parsed_at":"2025-06-17T10:40:37.543Z","dependency_job_id":"17ed8684-3ca5-4598-bdc5-5ec3d773ccc3","html_url":"https://github.com/dave-carter-uk/Apps-Stop-Start-Control","commit_stats":null,"previous_names":["dave-carter-uk/apps-stop-start-control"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dave-carter-uk/Apps-Stop-Start-Control","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dave-carter-uk%2FApps-Stop-Start-Control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dave-carter-uk%2FApps-Stop-Start-Control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dave-carter-uk%2FApps-Stop-Start-Control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dave-carter-uk%2FApps-Stop-Start-Control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dave-carter-uk","download_url":"https://codeload.github.com/dave-carter-uk/Apps-Stop-Start-Control/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dave-carter-uk%2FApps-Stop-Start-Control/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31771826,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"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":["automation","bash-script","powershell","sap","start","stop"],"created_at":"2025-02-28T23:36:38.408Z","updated_at":"2026-04-13T21:32:27.225Z","avatar_url":"https://github.com/dave-carter-uk.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Apps-Stop-Start-Control\nFramework to start/stop and check applications running on a host\n\nMain scripts are appcontrol.ps1 and appcontrol.sh\n\nWrapper scripts are provided as azcontrol.ps1 or something like that which basically just call the main scripts with some sort of logging, but basically same.\n\nThese scripts provide start/stop or check for the following services:\n-\tSAPInstance (Windows \u0026 Linux)\tSAP system instance\n-\tWINService (Windows)\tWindows service\n-\tWINCluster (Windows)\tlocal cluster\n-\tHANACluster (Linux)\tHANA Cluster\n\nBut following the framework within the scripts additional services can be added\n\n## Configuration file\nThe script reads a configuration file stored in the same directory as the script and called *hostname*.conf. This configuration file describes the applications and services running on this host.\u003cbr/\u003e\n\nFor example:\n\n```\n# File $hostname.conf\n\nWINService -Name \"SQL Server (MSSQLSERVER)\"\nWINService -Name \"SQL Server Agent (MSSQLSERVER)\"\nWINService -Name \"Server Intelligence Agent (N24QASDZQA01)\"\nWINCluster -Roles \"SAPSIDROLE\", \"ANOTHERROLE\"\nSAPInstance -Dir F:\\usr\\sap\\XYZ\\ASCS01 -User xydadm -Pass \"blahblah\"\nSAPInstance -Dir F:\\usr\\sap\\XYZ\\DVEBMGS00 -User xydadm -Pass \"blahblah\" -Grace 60\n```\nServices are processed from top to bottom (ascending) on Start and bottom to top (descending) on Stop\u003cbr/\u003e\nCalling ```azcontrol.ps1 Start``` will Start the 3 Windows Services first, then the Local Cluster and then SAP ASCS instance and then app instance\u003cbr/\u003e\nCalling ```azcontrol.ps1 Stop``` will stop SAP app instance, then ASCS, then local Cluster and then each Windows Service in turn\u003cbr/\u003e\n\nExample 2\n```\n# File $hostname.conf\n\nHANACluster /usr/sap/DEV/HDB00\nSAPInstance /usr/sap/XYZ/DVEBMGS69\n```\nServices are process from top to bottom (ascending) on Start and bottom to top (descending) on Stop\u003cbr/\u003e\nCalling ```azcontrol.sh stop``` will stop SAP Instance and then shutdown the HANA cluster\u003cbr/\u003e\nCalling ```azcontrol.sh start``` will start HANA cluster and then start SAP Instance\u003cbr/\u003e\n\n## Implementation\nBest thing to do is to have a fiddle around with the scripts and see if they are suitable or do what you require. Hopefully the code is pretty easy and self explanatory and you can use or adapt them for you requirements.\n\nThe framework basically boils down to:\n\nThe main control section calling functions:\n\nstart--whatever\n\nstop--whaterver\n\ncheck--whatever\n\nadditional functions can be added if required.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdave-carter-uk%2Fapps-stop-start-control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdave-carter-uk%2Fapps-stop-start-control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdave-carter-uk%2Fapps-stop-start-control/lists"}