summaryrefslogtreecommitdiff
path: root/init.d/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'init.d/emacs')
-rwxr-xr-xinit.d/emacs10
1 files changed, 10 insertions, 0 deletions
diff --git a/init.d/emacs b/init.d/emacs
new file mode 100755
index 0000000..f882e86
--- /dev/null
+++ b/init.d/emacs
@@ -0,0 +1,10 @@
+#!/sbin/openrc-run
+
+command="/usr/bin/emacs"
+command_args="--fg-daemon"
+command_background="true"
+pidfile=${XDG_RUNTIME_DIR:-${SVCDIR}}/emacs.pid
+description="Start an Emacs server running in the background"
+depend() {
+ after dbus
+}