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

Copy the systemd file into the user directory #131

Merged
merged 8 commits into from
Apr 1, 2024
Merged

Conversation

Oliver-BE
Copy link
Member

Purpose

I was getting the following error:

sig-app@goshawk:~/forest-carbon-framework$ clojure -M:systemd enable -r "forest-carbon-framework"
03/29 21:05:43 cmd: systemctl --user daemon-reload
03/29 21:05:43 cmd: systemctl --user enable cljweb-forest-carbon-framework
03/29 21:05:43 error: Failed to enable unit: Unit file cljweb-forest-carbon-framework.service does not exist.

The issue was that even though /opt/sig-app/.config/systemd/user/multi-user.target.wants/cljweb-forest-carbon-framework.service existed, /opt/sig-app/.config/systemd/user/cljweb-forest-carbon-framework.service did not. The fix is to copy the file to the user directory.

Oliver-BE and others added 3 commits March 29, 2024 18:29
- Adds `triangulum.utils/path` to make it easier to generate path strings
- Adds `babashka.fs` as a library for Triangulum to feel more Clojure-y
- Replaces a few Java fns with the `fs/*` equivalent
- Uses babashka.fs to symlink `cljweb-<repo-name>.service` to
`multi-user.target.wants` dir
@rjsheperd
Copy link
Member

Made some updates in #132. @oliver please review

@Oliver-BE Oliver-BE merged commit 43a22a0 into main Apr 1, 2024
2 checks passed
@Oliver-BE Oliver-BE deleted the oliver-fix-systemd branch April 1, 2024 20:21
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