Consolidate _src.posix into _home
This commit is contained in:
parent
bfdc7f4c1d
commit
f16c2e61b3
279 changed files with 2134 additions and 2190 deletions
33
chezmoi.roots/_home/private_dot_local/bin/atuin-sz-setup.sh
Normal file
33
chezmoi.roots/_home/private_dot_local/bin/atuin-sz-setup.sh
Normal file
|
@ -0,0 +1,33 @@
|
|||
#!/bin/bash
|
||||
# Sets up systemd user service for Atuin daemon on ZFS systems
|
||||
|
||||
# Create systemd user directory if it doesn't exist
|
||||
mkdir -p ~/.config/systemd/user/
|
||||
|
||||
# Create the service file with the correct path to atuin
|
||||
cat > ~/.config/systemd/user/atuin.service << EOF
|
||||
[Unit]
|
||||
Description=Atuin daemon service
|
||||
Documentation=https://docs.atuin.sh
|
||||
After=network.target
|
||||
StartLimitIntervalSec=0
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
RestartSec=1
|
||||
ExecStart=$(which atuin) daemon
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
EOF
|
||||
|
||||
# Reload systemd user daemon
|
||||
systemctl --user daemon-reload
|
||||
|
||||
# Enable and start the service
|
||||
systemctl --user enable atuin.service
|
||||
systemctl --user start atuin.service
|
||||
|
||||
echo "Atuin daemon is now set up with systemd and running"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue