I am starting the emacs server using
systemctl --now --user enable emacs
That server is running, if I run
systemctl --user status emacs
I got
$ systemctl --user status emacs
● emacs.service - Emacs text editor
Loaded: loaded (/usr/local/lib/systemd/user/emacs.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2018-06-09 09:27:56 CDT; 2 days ago
Docs: info:emacs
man:emacs(1)
https://gnu.org/software/emacs/
Main PID: 17613 (emacs)
CGroup: /user.slice/user-1000.slice/user@1000.service/emacs.service
└─17613 /usr/local/bin/emacs --fg-daemon
But, when I try to connect using emacsclient -c some_file.py
I got
$ emacsclient -t .psqlrc
emacsclient: can't find socket; have you started the server?
To start the server in Emacs, type "M-x server-start".
What am I missing?
EDIT:
Following the advice of @Tobias I ran
$ sudo netstat -xauopen | grep emacs
And the result was the following:
unix 3 [ ] STREAM CONNECTED 61841 17982/emacs
unix 3 [ ] STREAM CONNECTED 62269 17982/emacs
unix 3 [ ] STREAM CONNECTED 62268 17982/emacs
I was expecting see more information, but this doesn't seem right. What is happening?