Skip to content

Atuin daemon user systemd service example #92

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions src/content/docs/reference/daemon.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,32 @@ enabled = true

Then, run `atuin daemon`. This might make sense in a tmux session, systemd unit, etc. Once it's ready for wider use, we will handle this setup for you.

Example systemd configuration

```ini
[Unit]
Description=Atuin shell history sync daemon
Documentation=https://github.com/ellie/atuin

[Service]
ExecStart=/usr/local/bin/atuin daemon # change the path to where you've atuin installed.
Restart=on-failure
RestartSec=5
StandardOutput=journal
StandardError=journal

[Install]
WantedBy=default.target
```

```sh
mkdir -p ~/.config/systemd/user/
cp atuin.service ~/.config/systemd/user/
systemctl --user daemon-reload
systemctl --user enable --now atuin.service
systemctl --user status atuin.service
```

## Extra config

See the [config section](/configuration/config/#daemon)