blob: c78f34619e6e92fbafcab8fe1cced5f675542ef2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
post_install() {
setcap cap_net_admin+ep /usr/bin/eruption-process-monitor
systemctl daemon-reload
systemctl --global daemon-reload
# systemctl --user daemon-reload
systemctl preset eruption
systemctl preset eruption-fx-proxy
systemctl preset eruption-audio-proxy
systemctl preset eruption-process-monitor
systemctl --global preset eruption-fx-proxy
systemctl --global preset eruption-audio-proxy
systemctl --global preset eruption-process-monitor
systemctl enable --now eruption.service
systemctl --global import-environment WAYLAND_DISPLAY XDG_SESSION_TYPE XDG_CURRENT_DESKTOP DISPLAY XAUTHORITY
systemctl --global enable --now eruption-fx-proxy.service
systemctl --global enable --now eruption-audio-proxy.service
systemctl --global enable --now eruption-process-monitor.service
systemctl reload dbus.service
udevadm control --reload-rules
}
post_upgrade() {
setcap cap_net_admin+ep /usr/bin/eruption-process-monitor
systemctl daemon-reload
systemctl --global daemon-reload
# systemctl --user daemon-reload
systemctl try-restart eruption.service
systemctl --global try-restart eruption-fx-proxy.service
systemctl --global try-restart eruption-audio-proxy.service
systemctl --global try-restart eruption-process-monitor.service
systemctl reload dbus.service
udevadm control --reload-rules
}
pre_remove() {
systemctl --global stop eruption-fx-proxy.service
systemctl --global stop eruption-audio-proxy.service
systemctl --global stop eruption-process-monitor.service
systemctl stop eruption.service
}
post_remove() {
udevadm control --reload-rules
systemctl daemon-reload
}
|