mirror of
https://abf.rosa.ru/djam/spoofdpi.git
synced 2025-02-24 02:02:55 +00:00
Fix incorrect systemd unit
Created symlink /etc/systemd/user/multi-user.target.wants/spoof-dpi.service → /usr/lib/systemd/user/spoof-dpi.service. Unit /usr/lib/systemd/user/spoof-dpi.service is added as a dependency to a non-existent unit multi-user.target.
This commit is contained in:
parent
0103c0c02a
commit
4e375681bd
2 changed files with 8 additions and 2 deletions
|
@ -9,4 +9,5 @@ ExecStart=/usr/bin/spoof-dpi --no-banner --enable-doh
|
|||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
WantedBy=default.target
|
||||
Alias=spoofdpi.service
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
Summary: A simple and fast software designed to bypass Deep Packet Inspection
|
||||
Name: spoofdpi
|
||||
Version: 0.10.6
|
||||
Release: 1
|
||||
Release: 2
|
||||
License: Apache-2.0
|
||||
Group: Networking/Other
|
||||
Url: https://github.com/xvzc/SpoofDPI
|
||||
|
@ -28,6 +28,11 @@ A simple and fast software designed to bypass Deep Packet Inspection
|
|||
%{_userunitdir}/spoof-dpi.service
|
||||
|
||||
%post
|
||||
# migrate from incorrect systemd unit
|
||||
if test -L /etc/systemd/user/multi-user.target.wants/spoof-dpi.service; then
|
||||
systemctl --global disable spoof-dpi.service && \
|
||||
systemctl --global preset spoof-dpi.service || :
|
||||
fi
|
||||
%systemd_user_post spoof-dpi.service
|
||||
|
||||
%preun
|
||||
|
|
Loading…
Add table
Reference in a new issue