为什么用户服务启动时没有创建 RuntimeDirectory?

为什么用户服务启动时没有创建 RuntimeDirectory?

当我以用户身份启动“myApplication-myInstance.service”时,并未创建RuntimeDirectory(参见):man systemd.exec

$ systemctl --user cat myApplication-myInstance.service | grep RuntimeDirectory=
RuntimeDirectory=myApplication
$ systemctl --user list-unit-files myApplication-myInstance.service
UNIT FILE                    STATE   VENDOR PRESET
myApplication-myInstance.service enabled enabled

1 unit files listed.
$ ls /run/user/$UID/ | grep myApplication
$

EDIT0:我的服务处于活动状态,但退出可能是因为启动脚本使用了nohup

$ systemctl --user status myApplication-myInstance.service | grep "Active"
     Active: active (exited) since Fri 2023-03-31 11:54:59 CEST; 6h ago
$ systemctl --user cat myApplication-myInstance.service | grep -A3 ^.Service
[Service]
Type=simple
RemainAfterExit=yes
RuntimeDirectory=myApplication
$ echo $UID
1002
$

难道我做错了什么 ?

相关内容