3 How to set on-demand launching
4 =============================
6 * Set the on-demand of mused.conf with 'true', which is set 'false' now
7 * Set the Install of muse-server.serivce with 'Also=muse-server.socket', which is set 'WantedBy=multi-user.target' now
8 * Remove the 'Restart=always' at the muse-server.service
9 * Remove the part related with 'multi-user.target' at the mused.spec (Refer the diff as below)
10 -mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants
11 +mkdir -p %{buildroot}%{_unitdir}
12 install -m 0644 %SOURCE1 %{buildroot}%{_unitdir}/muse-server.service
13 -%install_service multi-user.target.wants muse-server.service
15 -%{_unitdir}/multi-user.target.wants/muse-server.service
16 +%{_unitdir}/muse-server.service
18 * For testing, reboot the target after removing the muse-server.service file at /usr/lib/systemd/system/multi-user.target.wants/
19 * After booting, you can check the command of 'systemctl status muse-server -l' as below
20 sh-3.2# systemctl status muse-server -l
21 ● muse-server.service - muse server
22 Loaded: loaded (/usr/lib/systemd/system/muse-server.service; bad; vendor preset: enabled)
23 Active: inactive (dead)