In the journal I see;
Code: Select all
sudo journalctl -u timidity
-- Logs begin at Tue 2018-01-23 14:49:46 GMT, end at Tue 2018-01-23 14:54:59 GMT. --
Jan 23 14:49:47 nuc7i5 systemd[1]: Starting LSB: start and stop timidity...
Jan 23 14:49:47 nuc7i5 timidity[463]: Starting TiMidity++ ALSA midi emulation....
Jan 23 14:49:47 nuc7i5 systemd[1]: Started LSB: start and stop timidity.
Jan 23 14:49:47 nuc7i5 pulseaudio[495]: [autospawn] core-util.c: Home directory not accessible: Permission denied
Jan 23 14:49:47 nuc7i5 pulseaudio[495]: [autospawn] lock-autospawn.c: Cannot access autospawn lock.
Does the second autospawn message suggest a lock file has been created while running timidity from the command prompt that now stops autoloading of the service at boot?
Using systemctl from the command prompt I can stop timidity, start it, and see the daemon then running.
systemctl enable and disable generate the following "not a native service" response however.
Code: Select all
sudo systemctl enable timidity
timidity.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable timidity
The problem is that after boot systemctl reports the service as active but the daemon is not running.
Code: Select all
systemctl status timidity
● timidity.service - LSB: start and stop timidity
Loaded: loaded (/etc/init.d/timidity; generated; vendor preset: enabled)
Active: active (exited) since Tue 2018-01-23 14:49:47 GMT; 16min ago
Docs: man:systemd-sysv-generator(8)
Tasks: 0 (limit: 4915)
CGroup: /system.slice/timidity.service
Code: Select all
systemctl status timidity
● timidity.service - LSB: start and stop timidity
Loaded: loaded (/etc/init.d/timidity; generated; vendor preset: enabled)
Active: active (running) since Tue 2018-01-23 15:14:33 GMT; 6s ago
Docs: man:systemd-sysv-generator(8)
Process: 1311 ExecStop=/etc/init.d/timidity stop (code=exited, status=0/SUCCES
Process: 1325 ExecStart=/etc/init.d/timidity start (code=exited, status=0/SUCC
Tasks: 1 (limit: 4915)
CGroup: /system.slice/timidity.service
└─1335 /usr/bin/timidity -Os -iAD
Code: Select all
sudo journalctl -u timidity
-- Logs begin at Tue 2018-01-23 14:49:46 GMT, end at Tue 2018-01-23 15:24:38 GMT. --
Jan 23 14:49:47 nuc7i5 systemd[1]: Starting LSB: start and stop timidity...
Jan 23 14:49:47 nuc7i5 timidity[463]: Starting TiMidity++ ALSA midi emulation....
Jan 23 14:49:47 nuc7i5 systemd[1]: Started LSB: start and stop timidity.
Jan 23 14:49:47 nuc7i5 pulseaudio[495]: [autospawn] core-util.c: Home directory not accessible: Permission denied
Jan 23 14:49:47 nuc7i5 pulseaudio[495]: [autospawn] lock-autospawn.c: Cannot access autospawn lock.
Jan 23 15:14:25 nuc7i5 systemd[1]: Stopping LSB: start and stop timidity...
Jan 23 15:14:25 nuc7i5 timidity[1311]: Stopping TiMidity++ ALSA midi emulation...No timidity found running; none killed.
Jan 23 15:14:25 nuc7i5 timidity[1311]: .
Jan 23 15:14:25 nuc7i5 systemd[1]: Stopped LSB: start and stop timidity.
Jan 23 15:14:33 nuc7i5 systemd[1]: Starting LSB: start and stop timidity...
Jan 23 15:14:33 nuc7i5 timidity[1325]: Starting TiMidity++ ALSA midi emulation....
Jan 23 15:14:33 nuc7i5 systemd[1]: Started LSB: start and stop timidity.