mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
app-shells/atuin: install atuin-daemon systemd user units
Signed-off-by: Florian Schmaus <flow@gentoo.org>
This commit is contained in:
@@ -622,6 +622,10 @@ src_install() {
|
||||
dozshcomp "completions/_${PN}"
|
||||
dofishcomp "completions/${PN}.fish"
|
||||
|
||||
if use daemon; then
|
||||
systemd_douserunit "${FILESDIR}"/atuin-daemon.{service,socket}
|
||||
fi
|
||||
|
||||
if ! use client; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
10
app-shells/atuin/files/atuin-daemon.service
Normal file
10
app-shells/atuin/files/atuin-daemon.service
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=atuin shell history daemon
|
||||
Requires=atuin-daemon.socket
|
||||
|
||||
[Service]
|
||||
ExecStart=atuin daemon
|
||||
|
||||
[Install]
|
||||
Also=atuin-daemon.socket
|
||||
WantedBy=default.target
|
||||
10
app-shells/atuin/files/atuin-daemon.socket
Normal file
10
app-shells/atuin/files/atuin-daemon.socket
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Unix socket activation for atuin shell history daemon
|
||||
|
||||
[Socket]
|
||||
ListenStream=%t/atuin.sock
|
||||
SocketMode=0600
|
||||
RemoveOnStop=true
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
||||
Reference in New Issue
Block a user