1

I run an emacs server on a remote server.

emacs --daemon

and I access this server with

ssh user@server -Y 'emacsclient -c &'

everything works fine until I close the client.

SSH session doesn't end,once I kill the SSH session,emacs server process die...

Is there anyway to make emacs server process immortal?

The server is Raspbian on raspberrypi. Emacs:

GNU Emacs 24.5.2

with configure option --with-x-toolkit=lucid

Thanks for your help.

  • Since you didn't mention the OS of the server, look into launchd-type facility that keeps a process running between resets and crashes. – Emacs User Sep 6 '15 at 21:36
  • converted above comment to answer below – Emacs User Sep 11 '15 at 1:26
1

I have solved this problem.Thanks Emacs User's help.

I used to manage emacs-server process with byobu.Then the process die...

Now:

start-stop-daemon -c $USER -d /$USERHOME --start --quiet --pidfile $PIDFILE --exec $EMACS -- "--daemon" 

see EmacsAsDaemon.

0

Since you didn't mention the OS of the server, look into launchd-type facility that keeps a process running between resets and crashes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.