mirror of
https://abf.rosa.ru/djam/syncthing.git
synced 2025-02-24 00:42:55 +00:00
fix MemoryDenyWriteExecute in unit, remove unit file
This commit is contained in:
parent
fd7ca0d58a
commit
3f662e157c
2 changed files with 5 additions and 13 deletions
|
@ -12,7 +12,7 @@
|
|||
|
||||
Name: syncthing
|
||||
Version: 1.4.2
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Syncthing
|
||||
License: MIT
|
||||
URL: http://syncthing.net/
|
||||
|
@ -53,6 +53,10 @@ rm -rf %{buildroot}
|
|||
install -d %{buildroot}{%{_bindir},%{_unitdir},%{_sbindir},%{_mandir}/man1/%{name}}
|
||||
|
||||
install -pm 0755 bin/syncthing %{buildroot}%{_bindir}
|
||||
|
||||
# repair unit
|
||||
sed -i '/MemoryDenyWriteExecute/d' etc/linux-systemd/system/%{name}@.service
|
||||
|
||||
install -pm 0644 etc/linux-systemd/system/%{name}@.service %{buildroot}%{_unitdir}
|
||||
install -Dm0644 man/* %{buildroot}%{_mandir}/man1/%{name}
|
||||
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
[Unit]
|
||||
Description=Syncthing
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=%I
|
||||
Environment=STNORESTART=yes
|
||||
ExecStart=/usr/bin/syncthing -no-browser -no-restart -logflags=0
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Reference in a new issue