Репозитории ALT
S: | 3.2p2-alt4 |
5.1: | 2.7p16-alt1 |
4.1: | 2.7p4-alt2 |
4.0: | |
+backports: | 2.7p4-alt0.M40.1 |
Группа :: Система/Ядро и оборудование
Пакет: owfs
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: owfs-3.2p2-alt-systemd-fix-broken-paths.patch
Скачать
Скачать
diff --git a/owfs/src/scripts/systemd/owfs.service.in b/owfs/src/scripts/systemd/owfs.service.in
index 80b3ffa..f67d121 100644
--- a/owfs/src/scripts/systemd/owfs.service.in
+++ b/owfs/src/scripts/systemd/owfs.service.in
@@ -5,8 +5,8 @@ Documentation=man:owfs(1)
[Service]
Type=notify
NotifyAccess=all
-ExecStart=@bindir@/owfs --server=127.0.0.1 --allow_other %t/owfs
-ExecStop=/usr/bin/umount %t/owfs
+ExecStart=@sbindir@/owfs --server=127.0.0.1 --allow_other %t/owfs
+ExecStop=/bin/umount %t/owfs
RuntimeDirectory=owfs
[Install]
diff --git a/owfs/src/scripts/systemd/owftpd.service.in b/owfs/src/scripts/systemd/owftpd.service.in
index 00c5e18..c4fd9b1 100644
--- a/owfs/src/scripts/systemd/owftpd.service.in
+++ b/owfs/src/scripts/systemd/owftpd.service.in
@@ -5,7 +5,7 @@ Documentation=man:owftpd(1)
[Service]
Type=notify
NotifyAccess=all
-ExecStart=@bindir@/owftpd --foreground --server=127.0.0.1
+ExecStart=@sbindir@/owftpd --foreground --server=127.0.0.1
User=ow
Group=ow
diff --git a/owfs/src/scripts/systemd/owhttpd.service.in b/owfs/src/scripts/systemd/owhttpd.service.in
index 1c3ff65..7e1008c 100644
--- a/owfs/src/scripts/systemd/owhttpd.service.in
+++ b/owfs/src/scripts/systemd/owhttpd.service.in
@@ -6,7 +6,7 @@ After=avahi-daemon.service
[Service]
Type=notify
NotifyAccess=all
-ExecStart=@bindir@/owhttpd --foreground --server=127.0.0.1
+ExecStart=@sbindir@/owhttpd --foreground --server=127.0.0.1
User=ow
Group=ow
diff --git a/owfs/src/scripts/systemd/owserver.service.in b/owfs/src/scripts/systemd/owserver.service.in
index fa963ba..f9ce40e 100644
--- a/owfs/src/scripts/systemd/owserver.service.in
+++ b/owfs/src/scripts/systemd/owserver.service.in
@@ -5,7 +5,7 @@ Documentation=man:owserver(1)
[Service]
Type=notify
NotifyAccess=all
-ExecStart=@bindir@/owserver --w1
+ExecStart=@sbindir@/owserver --w1
Restart=on-failure
#User=ow
#Group=ow
diff --git a/owfs/src/scripts/systemd/Makefile.am b/owfs/src/scripts/systemd/Makefile.am
index 69bd0e7..96eed10 100644
--- a/owfs/src/scripts/systemd/Makefile.am
+++ b/owfs/src/scripts/systemd/Makefile.am
@@ -12,7 +12,7 @@ EXTRA_DIST = \
owserver.service.in \
owserver.socket.in
-do_subst = sed -e 's,[@]bindir[@],$(bindir),g'
+do_subst = sed -e 's,[@]bindir[@],$(bindir),g;s,[@]sbindir[@],$(sbindir),g'
% :: %.in
$(do_subst) < $(srcdir)/$< > $@
diff --git a/owfs/src/scripts/systemd/Makefile.in b/owfs/src/scripts/systemd/Makefile.in
index 4315da8..7231d42 100644
--- a/owfs/src/scripts/systemd/Makefile.in
+++ b/owfs/src/scripts/systemd/Makefile.in
@@ -442,7 +442,7 @@ EXTRA_DIST = \
owserver.service.in \
owserver.socket.in
-do_subst = sed -e 's,[@]bindir[@],$(bindir),g'
+do_subst = sed -e 's,[@]bindir[@],$(bindir),g;s,[@]sbindir[@],$(sbindir),g'
all: all-am
.SUFFIXES: