Run a persistent process via ssh

后端 未结 5 483
北恋
北恋 2020-12-17 09:50

I\'m trying to start a test server via ssh but it always dies once i disconnect from ssh.

Is there a way to start a process (run the server) so it doesn\'t die upon

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-17 10:21

    As an alternative to nohup, screen, et al. you could revise your server to invoke daemon to detach it from the terminal. This is the idiomatic way to write services for linux.

    See also daemon(3).

提交回复
热议问题