Active Topics

 


Reply
Thread Tools
Posts: 5 | Thanked: 2 times | Joined on Oct 2010
#1
Hi all,

As a card-carrying member of the church of emacs, I've set up emacs for my n900. Predominantly for org-mode, but I 'm also testing a dovecot/offlineimap with gnus setup with good results.
I noticed the battery does not take a big hit when emacs runs as a daemon in the background.

I've tried to have "emacs --daemon" started as an upstart service with no success. Success being that emacs starts with reading the user's emacs config. The best result has been sofar that the process starts, but reads no config, appears twice in the ps ax list and is not accessible with emacsclient.
I've tried this:
1: su -c "emacs --daemon" user
2: su -s /bin/sh -c "emacs --daemon" user
3: su -c "/etc/init.d/emacs start" user
(created a startup script)
also tried setuidgid and start-stop-daemon setups all to no avail.

Anybody have any idea what might be the issue here ?

thx sndr
 
Posts: 151 | Thanked: 93 times | Joined on Sep 2009 @ sofia, bulgaria
#2
Try with

su - user -c "emacs --daemon"
 
Posts: 5 | Thanked: 2 times | Joined on Oct 2010
#3
*confused*
Why did this work only once ?

reboot, works, reboot, socket lost.. ?
 
Posts: 151 | Thanked: 93 times | Joined on Sep 2009 @ sofia, bulgaria
#4
Looks like you start it before your system is fully initialized. Where did you put the starting script?
 
Reply


 
Forum Jump


All times are GMT. The time now is 04:41.