[Others] 自定义systemd服务无法开机自启动
Tofloor
default avatar
南柯
deepin
2025-03-27 14:23
Author

Deepin 23,自定义systemd服务无法开机自启动,Ubuntu下正常。

几个月前是没问题的。

自定义frpc如下:

image.png

Reply Favorite View the author
All Replies
deepinuser17
deepin
2025-03-27 15:17
#1

有没有运行过, sudo systemctl daemon-reload ?

查看该启动状态: systemctl status frpc.service

如果有问题,以上命令会提示。

因为这个服务要运行在个人目录下的文件, 建议添加运行用户名:

[service] Type=simple User=jyu ....
Reply View the author
MeGusta
deepin
2025-03-28 00:49
#2

我只看见你把

multi-user.target

写成了

multo-user.target

Reply View the author
neko
deepin
Ecological co-builder
2025-03-28 07:31
#3
MeGusta

我只看见你把

multi-user.target

写成了

multo-user.target

太细节了

Reply View the author
New Thread

Popular Events

More
国际排名
WHLUG