Add systemd config

This commit is contained in:
Tom Willemse 2014-08-21 00:19:38 +02:00
parent 1774bb445d
commit a817e7d55c
6 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1 @@
default.target.wants/

View file

@ -0,0 +1,12 @@
# -*- mode: conf-unix; -*-
[Unit]
Description=Emacs: the extensible, self-documenting text editor
[Service]
Type=forking
ExecStart=/usr/bin/emacs --daemon
ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)"
Restart=always
[Install]
WantedBy=default.target

View file

@ -0,0 +1,3 @@
[Service]
Environment=DISPLAY=:0
Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%U/bus

View file

@ -0,0 +1,10 @@
[Unit]
Description=Synergy Server Daemon
After=network.target
[Service]
Type=forking
ExecStart=/usr/bin/synergys --config /etc/synergy.conf
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,9 @@
[Unit]
Conflicts=synergys.service
[Socket]
ListenStream=24800
Accept=false
[Install]
WantedBy=sockets.target

View file

@ -0,0 +1,9 @@
[Unit]
Description=RXVT-Unicode Daemon
[Service]
ExecStart=/usr/bin/urxvtd
Restart=always
[Install]
WantedBy=default.target