Seafile: systemd User-Service statt i3 exec für seaf-cli
- seaf-cli start aus i3 autostart entfernt - systemd User-Service erstellt (Restart bei Netzwerkproblemen, Logging via journalctl) - Ansible-Tasks für Service-Deployment und Aktivierung hinzugefügt
This commit is contained in:
@@ -80,7 +80,6 @@ exec --no-startup-id xautolock -time 10 -locker blurlock
|
|||||||
exec --no-startup-id autorandr --change
|
exec --no-startup-id autorandr --change
|
||||||
exec --no-startup-id greenclip daemon
|
exec --no-startup-id greenclip daemon
|
||||||
exec_always --no-startup-id autotiling
|
exec_always --no-startup-id autotiling
|
||||||
exec --no-startup-id seaf-cli start
|
|
||||||
exec --no-startup-id keepassxc --keyfile /home/kalle/kgokeyfile /home/kalle/Passwords.kdbx
|
exec --no-startup-id keepassxc --keyfile /home/kalle/kgokeyfile /home/kalle/Passwords.kdbx
|
||||||
exec --no-startup-id sysinfo-notify
|
exec --no-startup-id sysinfo-notify
|
||||||
|
|
||||||
|
|||||||
13
files/configs/systemd/seaf-cli.service
Normal file
13
files/configs/systemd/seaf-cli.service
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Seafile CLI Client Daemon
|
||||||
|
After=network-online.target
|
||||||
|
Wants=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/usr/bin/seaf-cli start
|
||||||
|
ExecStop=/usr/bin/seaf-cli stop
|
||||||
|
RemainAfterExit=yes
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
||||||
@@ -112,3 +112,23 @@
|
|||||||
file:
|
file:
|
||||||
path: "{{ userhome }}/Pictures/Screenshots"
|
path: "{{ userhome }}/Pictures/Screenshots"
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
|
- name: i3 Configuration - Create systemd user service directory
|
||||||
|
become_user: "{{ username }}"
|
||||||
|
file:
|
||||||
|
path: "{{ userhome }}/.config/systemd/user"
|
||||||
|
state: directory
|
||||||
|
|
||||||
|
- name: i3 Configuration - Copy seaf-cli systemd user service
|
||||||
|
become_user: "{{ username }}"
|
||||||
|
copy:
|
||||||
|
src: files/configs/systemd/seaf-cli.service
|
||||||
|
dest: "{{ userhome }}/.config/systemd/user/seaf-cli.service"
|
||||||
|
|
||||||
|
- name: i3 Configuration - Enable seaf-cli user service
|
||||||
|
become_user: "{{ username }}"
|
||||||
|
systemd:
|
||||||
|
name: seaf-cli
|
||||||
|
enabled: yes
|
||||||
|
scope: user
|
||||||
|
daemon_reload: yes
|
||||||
|
|||||||
Reference in New Issue
Block a user