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.

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

2 Answers 2

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 and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.