Add systemd config
This commit is contained in:
parent
1774bb445d
commit
a817e7d55c
6 changed files with 44 additions and 0 deletions
1
sysemd/.config/systemd/user/.gitignore
vendored
Normal file
1
sysemd/.config/systemd/user/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
default.target.wants/
|
12
sysemd/.config/systemd/user/emacs.service
Normal file
12
sysemd/.config/systemd/user/emacs.service
Normal 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
|
|
@ -0,0 +1,3 @@
|
|||
[Service]
|
||||
Environment=DISPLAY=:0
|
||||
Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%U/bus
|
10
sysemd/.config/systemd/user/synergys.service
Normal file
10
sysemd/.config/systemd/user/synergys.service
Normal 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
|
9
sysemd/.config/systemd/user/synergys.socket
Normal file
9
sysemd/.config/systemd/user/synergys.socket
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Conflicts=synergys.service
|
||||
|
||||
[Socket]
|
||||
ListenStream=24800
|
||||
Accept=false
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
9
sysemd/.config/systemd/user/urxvtd.service
Normal file
9
sysemd/.config/systemd/user/urxvtd.service
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=RXVT-Unicode Daemon
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/urxvtd
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
Loading…
Reference in a new issue