I'm no expert on systemctl or its related technology, far from it.
I do know that systemctl and systemctl --user are two separated concepts on the linux distro I'm working with.
At first glance it doesn't seem possible to add the option user to the command.
Running ->getService('test') works if the unit test is configured as a system unit.
Running ->getService('test') works if the unit test is configured as a user unit but throws an (expected) UnitNotFoundException exception.
$ systemctl --user status test
I hope this is on the road map or, better yet, I'm just missing the obvious solution.
I'm no expert on systemctl or its related technology, far from it.
I do know that
systemctlandsystemctl --userare two separated concepts on the linux distro I'm working with.At first glance it doesn't seem possible to add the option
userto the command.Running
->getService('test')works if the unittestis configured as a system unit.$ systemctl status testRunning
->getService('test')works if the unittestis configured as a user unit but throws an (expected)UnitNotFoundExceptionexception.$ systemctl --user status testI hope this is on the road map or, better yet, I'm just missing the obvious solution.