Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为何用systemd无法让server命令运行在后台? #2

Open
luckypoem opened this issue May 5, 2018 · 0 comments
Open

为何用systemd无法让server命令运行在后台? #2

luckypoem opened this issue May 5, 2018 · 0 comments

Comments

@luckypoem
Copy link

hi.
我创建了/etc/systemd/system/goproxy-by-alienero.service文件,

root@ar:~# cat /etc/systemd/system/goproxy-by-alienero.service
[Unit]
After=network.target

[Service]
ExecStart=/root/go/gopath/bin/server -listen=0.0.0.0:8087 -password=********
Restart=always

[Install]
WantedBy=multi-user.target
root@ar:~#

但是我运行systemctl start goproxy-by-alienero
我以为启动了server命令,但是
root@ar:# ps aux|grep server
root 31964 0.0 0.0 11076 864 pts/0 S+ 22:30 0:00 grep server
root@ar:
#

server 并未在运行中,不知为何?难道goproxy-by-alienero.service文件写错了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant