Добрых суток уважаемой рассылке. Дано: Дебиан ГНУ/Линукс 9.9, искоробочный systemd 232.
Из-под рута все, вроде бы, в порядке:
# systemctl cat test-echo.service # /etc/systemd/system/test-echo.service [Service] Type=oneshot ExecStart=/bin/echo 'Hi there.' # journalctl -f -ocat -u test-echo.service & # for _ in {1..10}; do systemctl start test-echo.service; sleep 1; done Starting test-echo.service... Hi there. Started test-echo.service. Starting test-echo.service... Hi there. Started test-echo.service. Starting test-echo.service... Hi there. Started test-echo.service. Starting test-echo.service... Hi there. Started test-echo.service. Starting test-echo.service... Hi there. Started test-echo.service. Starting test-echo.service... Hi there. Started test-echo.service. Starting test-echo.service... Hi there. Started test-echo.service. Starting test-echo.service... Hi there. Started test-echo.service. Starting test-echo.service... Hi there. Started test-echo.service. Starting test-echo.service... Hi there. Started test-echo.service.
А теперь то же самое, но с пользовательской службой:
$ systemctl --user cat test-echo.service # /home/dag/.config/systemd/user/test-echo.service [Service] Type=oneshot ExecStart=/bin/echo 'Hi there.' $ journalctl -f -ocat --user-unit test-echo.service & $ for _ in {1..10}; do systemctl --user start test-echo.service; sleep 1; done Starting test-echo.service... Hi there. Started test-echo.service. Starting test-echo.service... Started test-echo.service. Starting test-echo.service... Started test-echo.service. Starting test-echo.service... Hi there. Started test-echo.service. Starting test-echo.service... Hi there. Started test-echo.service. Starting test-echo.service... Started test-echo.service. Starting test-echo.service... Started test-echo.service. Starting test-echo.service... Started test-echo.service. Starting test-echo.service... Started test-echo.service. Starting test-echo.service... Hi there. Started test-echo.service.
Как это понимать?
signature.asc
Description: PGP signature