Skip to main content
Topic: emacs openrc init script (Read 549 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

emacs openrc init script

I was wondering what is the way to start emacs as a daemon or run it as a service using openrc. Emacs can be run as a daemon by issuing
Code: [Select]
emacs --daemon
However, is there a way to add to default runlevel using openrc? Any help is much appreciated.
Andromedan

 

Re: emacs openrc init script

Reply #1
Save this as /etc/init.d/emacs and enable it.
Code: [Select]
#!/usr/bin/openrc-run
command="/usr/bin/emacs"
command_args="--daemon"

#depend() {
#    after local
#}