summaryrefslogtreecommitdiff
path: root/init.d/emacs
diff options
context:
space:
mode:
authorAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2023-05-04 10:01:34 -0300
committerAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2023-05-04 10:01:34 -0300
commit31ee4472e897cbf0c3d61bd56bd5864f4507b659 (patch)
tree5b0a8af5189ea1b88a36e9b909f3933899d9a1cf /init.d/emacs
re-initial
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
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
+}