File tree 4 files changed +9
-4
lines changed
4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -917,6 +917,9 @@ if ( UNIX )
917
917
configure_file ( fluidsynth.service.in
918
918
${FluidSynth_BINARY_DIR} /fluidsynth.service @ONLY )
919
919
920
+ configure_file ( fluidsynth.tmpfiles.in
921
+ ${FluidSynth_BINARY_DIR} /fluidsynth.tmpfiles @ONLY )
922
+
920
923
configure_file ( fluidsynth.conf.in
921
924
${FluidSynth_BINARY_DIR} /fluidsynth.conf @ONLY )
922
925
Original file line number Diff line number Diff line change @@ -95,9 +95,10 @@ This package contains the shared library for Fluidsynth.
95
95
96
96
%if 0%{?suse_version }
97
97
98
- # manually install systemd service files
98
+ # manually install systemd files
99
99
install -Dm 644 build/fluidsynth.conf %{buildroot }%{_fillupdir }/sysconfig.%{name }
100
100
install -Dm 644 build/fluidsynth.service %{buildroot }%{_unitdir }/%{name }.service
101
+ install -Dm 644 build/fluidsynth.tmpfiles %{buildroot }%{_tmpfilesdir }/%{name }.conf
101
102
install -d %{buildroot }%{_sbindir }
102
103
ln -s %{_sbindir }/service %{buildroot }%{_sbindir }/rc%{name }
103
104
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ After=sound.target
5
5
After=pipewire.service pulseaudio.service
6
6
Wants=pipewire.service pulseaudio.service
7
7
# If you need more than one instance, use `systemctl edit` to override this:
8
- ConditionPathExists=!/run/lock/fluidsynth.lock
8
+ ConditionPathExists=!/run/lock/fluidsynth/fluidsynth .lock
9
9
ConditionUser=!@system
10
10
11
11
[Service]
@@ -27,8 +27,8 @@ Environment=OTHER_OPTS= SOUND_FONT=
27
27
EnvironmentFile=@FLUID_DAEMON_ENV_FILE@
28
28
EnvironmentFile=-%h/.config/fluidsynth
29
29
ExecStart=@CMAKE_INSTALL_FULL_BINDIR@/fluidsynth -is $OTHER_OPTS $SOUND_FONT
30
- ExecStartPre=touch /run/lock/fluidsynth.lock
31
- ExecStopPost=rm -f /run/lock/fluidsynth.lock
30
+ ExecStartPre=touch /run/lock/fluidsynth/fluidsynth .lock
31
+ ExecStopPost=rm -f /run/lock/fluidsynth/fluidsynth .lock
32
32
33
33
[Install]
34
34
WantedBy=default.target
Original file line number Diff line number Diff line change
1
+ d /run/lock/fluidsynth 0777 root root
You can’t perform that action at this time.
0 commit comments