fix MemoryDenyWriteExecute in unit, remove unit file

This commit is contained in:
Sergey Zhemoitel 2020-04-15 14:19:50 +03:00
parent fd7ca0d58a
commit 3f662e157c
2 changed files with 5 additions and 13 deletions

View file

@ -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}

View file

@ -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