LINUX.ORG.RU

История изменений

Исправление chenger, (текущая версия) :

root@user-pc:/etc/systemd/system# systemctl daemon-reload && systemctl stop jack && systemctl start jack && systemctl status jack
● jack.service - JACK 2
   Loaded: loaded (/etc/systemd/system/jack.service; enabled; vendor preset: enabled)
   Active: active (exited) (Result: exit-code) since Чт 2018-02-01 20:31:20 MSK; 6ms ago
  Process: 2898 ExecStopPost=/usr/bin/pkill -9 jackdbus (code=exited, status=1/FAILURE)
  Process: 2895 ExecStop=/usr/bin/jack_control stop (code=exited, status=1/FAILURE)
  Process: 2903 ExecStart=/usr/bin/jack_control start (code=exited, status=1/FAILURE)
 Main PID: 2903 (code=exited, status=1/FAILURE)

фев 01 20:31:20 user-pc jack_control[2903]:     self._named_service = conn.activate_name_owner(bus_name)
фев 01 20:31:20 user-pc jack_control[2903]:   File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 180, in activate_name_owner
фев 01 20:31:20 user-pc jack_control[2903]:     self.start_service_by_name(bus_name)
фев 01 20:31:20 user-pc jack_control[2903]:   File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 278, in start_service_by_name
фев 01 20:31:20 user-pc jack_control[2903]:     'su', (bus_name, flags)))
фев 01 20:31:20 user-pc jack_control[2903]:   File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
фев 01 20:31:20 user-pc jack_control[2903]:     message, timeout)
фев 01 20:31:20 user-pc jack_control[2903]: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.jackaudio.service was not provided by any .service files
фев 01 20:31:20 user-pc systemd[1]: jack.service: Main process exited, code=exited, status=1/FAILURE
фев 01 20:31:20 user-pc systemd[1]: Started JACK 2.
root@user-pc:/etc/systemd/system# cat /etc/systemd/system/jack.service
[Unit]
Description=JACK 2
Before=sound.target
Before=pulseaudio.service
Requires=dbus.socket
After=usb-reset.service

[Service]
Type=dbus
BusName=org.jackaudio.service
Environment='DISPLAY=:0' "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket"
#"$(dbus-launch)"
#ExecStartPre=$(/usr/bin/dbus-launch)
ExecStart=/usr/bin/jack_control start
ExecStartPost=/usr/bin/jack_control ds dummy
ExecStartPost=/usr/bin/jack_control iload netmanager
ExecStop=/usr/bin/jack_control stop
ExecStopPost=/usr/bin/pkill -9 jackdbus
SuccessExitStatus=0
RemainAfterExit=true
#Restart=always
#RestartSec=5

[Install]
WantedBy=session.target
WantedBy=sound.target

Исходная версия chenger, :

root@user-pc:/etc/systemd/system# systemctl daemon-reload && systemctl stop jack && systemctl start jack && systemctl status jack
● jack.service - JACK 2
   Loaded: loaded (/etc/systemd/system/jack.service; enabled; vendor preset: enabled)
   Active: active (exited) (Result: exit-code) since Чт 2018-02-01 20:31:20 MSK; 6ms ago
  Process: 2898 ExecStopPost=/usr/bin/pkill -9 jackdbus (code=exited, status=1/FAILURE)
  Process: 2895 ExecStop=/usr/bin/jack_control stop (code=exited, status=1/FAILURE)
  Process: 2903 ExecStart=/usr/bin/jack_control start (code=exited, status=1/FAILURE)
 Main PID: 2903 (code=exited, status=1/FAILURE)

фев 01 20:31:20 user-pc jack_control[2903]:     self._named_service = conn.activate_name_owner(bus_name)
фев 01 20:31:20 user-pc jack_control[2903]:   File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 180, in activate_name_owner
фев 01 20:31:20 user-pc jack_control[2903]:     self.start_service_by_name(bus_name)
фев 01 20:31:20 user-pc jack_control[2903]:   File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 278, in start_service_by_name
фев 01 20:31:20 user-pc jack_control[2903]:     'su', (bus_name, flags)))
фев 01 20:31:20 user-pc jack_control[2903]:   File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
фев 01 20:31:20 user-pc jack_control[2903]:     message, timeout)
фев 01 20:31:20 user-pc jack_control[2903]: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.jackaudio.service was not provided by any .service files
фев 01 20:31:20 user-pc systemd[1]: jack.service: Main process exited, code=exited, status=1/FAILURE
фев 01 20:31:20 user-pc systemd[1]: Started JACK 2.