Comments (2)
Hey!
I'd stick with the workaround tbh - the daemon is designed to run persistently, and not just while a session is in place.
I'd also prefer that the daemon does not try and do more work once it's been asked to exit, and instead exits immediately.
Is there any reason you're not happy to just leave the daemon running?
from atuin.
The daemon is designed to run persistently, and not just while a session is in place.
In a system using systemd, that could be done using a system-wide systemd service (i.e. not a systemd user service). But that won't work in case of multiple users on the same system. It's especially not suitable for systems where multiple users should have different Atuin accounts (not my case, but probably others also having the same issue). A single Atuin daemon running as systemd service would also just use a single Atuin account.
Is there any reason you're not happy to just leave the daemon running?
That's just by design of systemd user services. Those services are deactivated once the last session of the user is closed. In case of an SSH connection to a server, the session ends with the SSH connection being closed. And if that's the only SSH connection to the server, the systemd service gets stopped.
But as already mentioned, this results in Atuin not being able to sync the recent history entries added since the last sync.
Example:
- I execute some commands in my SSH session
- then at some point, the daemon syncs the history
- then I execute a few other commands
- I disconnect from the server before the daemon syncs the next time
The commands executed in the 3rd step of my example won't be synced until I'm connecting again.
from atuin.
Related Issues (20)
- [Bug]: suffix-exact-match doesn't trim command first
- Expand on the set of GitHub tokens that Atuin will consider secrets
- [Bug]: Scroll position is not restored when using `inline_height` HOT 1
- [Bug]: Nushell integration adds a significantly delay before each prompt
- Hide `host` filter mode if there's only one
- [Bug]: Timezone not change in config HOT 1
- Feature Request: Set terminal title when interactive mode is launched via shell hooks
- [Bug]: Right Alt 2 doesn't type @ HOT 2
- Problems while installing and using. HOT 2
- [Bug]: History stopped recording HOT 7
- [Bug]: Install script putting env sourcing in .bash_profile instead of .bashrc HOT 4
- [Bug]: UI not working properly when inside a GNU screen session HOT 1
- [feature request] auto execute `atuin sync --force` after `atuin login` HOT 1
- [Bug]: atuin command not found when a new shell is opened HOT 5
- Prost and tonic updates HOT 5
- [Bug]: history not synced between two Macs 🤔 HOT 2
- [Bug]: Ctrl-C (or any ctrl+key) does not work after invoking atuin with Ctrl-R HOT 21
- [Bug]: History not synced across two machines HOT 3
- Systemd file not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atuin.