Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ext_name is used in the directory structure #18

Merged
merged 1 commit into from
May 21, 2024

Conversation

puzza007
Copy link
Member

The service name is taken from the file e.g. event_store.service so if ext_name has hyphens these won't match up and we'll get errors like

LifecycleEvent - AfterInstall
Script - bin/deploy-extract-release
[stdout]==> Removing previous release /srv/event-store/current [stdout]==> Extracting release from tar file /opt/codedeploy-agent/deployment-root/5b9577ac-428f-4dbf-82ce-79d9fe70d88a/d-7N1LS0I86/deployment-archive/bin/../event_store.tar.gz Script - bin/deploy-set-perms
Script - bin/deploy-enable
[stdout]==> Enabling systemd unit event_store
[stderr]Failed to enable unit: Unit file event_store.service does not exist.

The service name is taken from the file e.g. event_store.service so if
ext_name has hyphens these won't match up and we'll get errors like

LifecycleEvent - AfterInstall
Script - bin/deploy-extract-release
[stdout]==> Removing previous release /srv/event-store/current
[stdout]==> Extracting release from tar file /opt/codedeploy-agent/deployment-root/5b9577ac-428f-4dbf-82ce-79d9fe70d88a/d-7N1LS0I86/deployment-archive/bin/../event_store.tar.gz
Script - bin/deploy-set-perms
Script - bin/deploy-enable
[stdout]==> Enabling systemd unit event_store
[stderr]Failed to enable unit: Unit file event_store.service does not exist.
@puzza007 puzza007 force-pushed the fix/align-ext-name-and-service-name branch from 732a8ce to 4f50661 Compare May 21, 2024 02:41
@puzza007 puzza007 merged commit 3450fb0 into master May 21, 2024
8 checks passed
@puzza007 puzza007 deleted the fix/align-ext-name-and-service-name branch May 21, 2024 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants