-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Further to my earlier post. I must confess to occasionally getting to be a bit stubborn, and in this case didn't want to be beaten by Poettering. I re-installed your script, modifying some fields in what I hope was the appropriate manner: # ls -l /etc/systemd/user total 4 -rwxr-x---. 1 root root 246 Apr 3 21:21 timidity.service # cat /etc/systemd/user/timidity.service [Unit] Description=timidity daemon
[Service] PIDFile=/var/run/timidity.pid User=jmr Group=users WorkingDirectory=/home/jmr ExecStart=/usr/bin/timidity -iAD ExecReload=/bin/kill -s HUP $MAINPID ExecStop=/bin/kill -s TERM $MAINPID PrivateTmp=true
jmr:users is my account, it will do for the moment; at least I know /home/jmr is usable! I changed the ExecStart to use /usr/bin/timidity, that is the output from command -v timidity.
# systemctl daemon-reload # echo $? 0 # systemctl start timidity Failed to issue method call: Unit timidity.service failed to load: No such file or directory. # setenforce 0 # getenforce Permissive # systemctl start timidity Failed to issue method call: Unit timidity.service failed to load: No such file or directory. # systemctl daemon-reload # systemctl start timidity Failed to issue method call: Unit timidity.service failed to load: No such file or directory.
I then rebooted the system: # systemctl status timidity timidity.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead)
# systemctl daemon-reload # echo $? 0 # systemctl start timidity Failed to issue method call: Unit timidity.service failed to load: No such file or directory.
I checked all logs which had been modified since the reboot and there was no reference to timidity in any of them, which does seem odd if the startup is failing.
Any pointers as to where to go next? I did briefly think of running systemctl with sh -vx, but but as I expected it is an image! Back to square 1.
Fortunately this is my home machine, so I am free to pull it to bits to try and find out what is happening. My next thought is to add dummy services in /etc/systemd/user, possibly pulling one out of the system directory to prove it is working. Poettering has certainly set me an interesting puzzle.
Thanks. Martin