写了一个systemd服务,想开机的时候在后台运行nylas n1
Tofloor
poster avatar
justforlxz
deepin
2016-03-17 01:19
Author

具体情况就是上图所示,开机以后查看服务,是失败的,然后可以手动start。我用的systemctl --user enable 启用的。而且执行的那条命令是可以用的,手动start也可以运行,我不知道问题出在哪里。。
Reply Favorite View the author
All Replies
avatar
justforlxz
deepin
2016-03-17 01:20
#1
写的meow的systemd就能正常使用。。
Reply View the author
avatar
MattD
deepin
2016-03-17 01:57
#2
图形程序的启动要依赖X11,我觉得你就不该把它写到init服务里面,而应该放到xdg的autostart里面。
Reply View the author
avatar
justforlxz
deepin
2016-03-17 05:17
#3
https://bbs.deepin.org/post/38129
图形程序的启动要依赖X11,我觉得你就不该把它写到init服务里面,而应该放到xdg的autostart里面。 ...

好吧,我还以为--user是用户登陆的时候才启动。
Reply View the author
avatar
justforlxz
deepin
2016-03-17 05:57
#4
https://bbs.deepin.org/post/38129
图形程序的启动要依赖X11,我觉得你就不该把它写到init服务里面,而应该放到xdg的autostart里面。 ...

改写好了,可以开机启动。
systemd是负责服务的,,我写的不是服务,so。。我sb了。
Reply View the author
avatar
cxbii
deepin
2016-03-17 18:14
#5
启动器选择这个图表后右键设置不就完了?
Reply View the author
avatar
justforlxz
deepin
2016-03-18 19:26
#6
https://bbs.deepin.org/post/38129
启动器选择这个图表后右键设置不就完了?

我需要用--background让它开机以后是在后台,而不是在前端显示出来。
Reply View the author
avatar
cxbii
deepin
2016-03-18 23:41
#7
https://bbs.deepin.org/post/38129
我需要用--background让它开机以后是在后台,而不是在前端显示出来。

{:4_124:}  好。。
Reply View the author
avatar
wufan
deepin
2017-02-22 00:08
#8
https://bbs.deepin.org/post/38129
写的meow的systemd就能正常使用。。

你好,能不能告诉我一下meow的systemd怎么配置吗
Reply View the author
avatar
justforlxz
deepin
2017-02-22 06:02
#9
https://bbs.deepin.org/post/38129
你好,能不能告诉我一下meow的systemd怎么配置吗
  1. [Unit]
  2. Description=MEOW HTTP proxy service per-user service
  3. After=network.target

  4. [Service]
  5. ExecStart=/usr/bin/meow -c /etc/meow/rc
  6. Restart=on-abort

  7. [Install]
  8. WantedBy=default.target
Copy the Code


Reply View the author
avatar
wufan
deepin
2017-02-22 07:54
#10
Reply View the author