From 952768c46ae11e0bb1cb01f527153f6cd2d9ba62 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 6 Jan 2015 13:22:47 -0500 Subject: clean up systemd configuration --- .../systemd/user/default.target.wants/emacs-daemon.service | 11 +---------- .config/systemd/user/default.target.wants/gpg-agent.service | 10 +--------- .../systemd/user/default.target.wants/maildirproc@att.service | 1 - .../user/default.target.wants/maildirproc@purdue.service | 1 - .config/systemd/user/default.target.wants/vncserver@1.service | 1 - .config/systemd/user/emacs-daemon.service | 10 ++++++++++ .config/systemd/user/gpg-agent.service | 9 +++++++++ .config/systemd/user/redshift@.service | 11 +++++++++++ .config/systemd/user/vncserver@.service | 2 +- 9 files changed, 33 insertions(+), 23 deletions(-) mode change 100644 => 120000 .config/systemd/user/default.target.wants/emacs-daemon.service mode change 100644 => 120000 .config/systemd/user/default.target.wants/gpg-agent.service delete mode 120000 .config/systemd/user/default.target.wants/maildirproc@att.service delete mode 120000 .config/systemd/user/default.target.wants/maildirproc@purdue.service delete mode 120000 .config/systemd/user/default.target.wants/vncserver@1.service create mode 100644 .config/systemd/user/emacs-daemon.service create mode 100644 .config/systemd/user/gpg-agent.service create mode 100644 .config/systemd/user/redshift@.service diff --git a/.config/systemd/user/default.target.wants/emacs-daemon.service b/.config/systemd/user/default.target.wants/emacs-daemon.service deleted file mode 100644 index 279d83a..0000000 --- a/.config/systemd/user/default.target.wants/emacs-daemon.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=Emacs deamon - -[Service] -Type=forking -ExecStart=/bin/bash -l -c 'emacs --daemon' -ExecStop=/bin/bash -l -c 'emacsclient -e "(kill-emacs)"' - -[Install] -WantedBy=default.target diff --git a/.config/systemd/user/default.target.wants/emacs-daemon.service b/.config/systemd/user/default.target.wants/emacs-daemon.service new file mode 120000 index 0000000..106cf42 --- /dev/null +++ b/.config/systemd/user/default.target.wants/emacs-daemon.service @@ -0,0 +1 @@ +/home/lukeshu-parabola/.config/systemd/user/emacs-daemon.service \ No newline at end of file diff --git a/.config/systemd/user/default.target.wants/gpg-agent.service b/.config/systemd/user/default.target.wants/gpg-agent.service deleted file mode 100644 index 93c12b0..0000000 --- a/.config/systemd/user/default.target.wants/gpg-agent.service +++ /dev/null @@ -1,9 +0,0 @@ -[Unit] -Description="GnuPG agent daemon" - -[Service] -Type=forking -ExecStart=/usr/bin/gpg-agent --daemon --write-env-file ${XDG_RUNTIME_DIR}/gpg - -[Install] -WantedBy=default.target diff --git a/.config/systemd/user/default.target.wants/gpg-agent.service b/.config/systemd/user/default.target.wants/gpg-agent.service new file mode 120000 index 0000000..5727454 --- /dev/null +++ b/.config/systemd/user/default.target.wants/gpg-agent.service @@ -0,0 +1 @@ +/home/lukeshu-parabola/.config/systemd/user/gpg-agent.service \ No newline at end of file diff --git a/.config/systemd/user/default.target.wants/maildirproc@att.service b/.config/systemd/user/default.target.wants/maildirproc@att.service deleted file mode 120000 index 1079515..0000000 --- a/.config/systemd/user/default.target.wants/maildirproc@att.service +++ /dev/null @@ -1 +0,0 @@ -/home/luke/.config/systemd/user/maildirproc@.service \ No newline at end of file diff --git a/.config/systemd/user/default.target.wants/maildirproc@purdue.service b/.config/systemd/user/default.target.wants/maildirproc@purdue.service deleted file mode 120000 index 1079515..0000000 --- a/.config/systemd/user/default.target.wants/maildirproc@purdue.service +++ /dev/null @@ -1 +0,0 @@ -/home/luke/.config/systemd/user/maildirproc@.service \ No newline at end of file diff --git a/.config/systemd/user/default.target.wants/vncserver@1.service b/.config/systemd/user/default.target.wants/vncserver@1.service deleted file mode 120000 index 2dcf488..0000000 --- a/.config/systemd/user/default.target.wants/vncserver@1.service +++ /dev/null @@ -1 +0,0 @@ -/home/luke/.config/systemd/user/vncserver@.service \ No newline at end of file diff --git a/.config/systemd/user/emacs-daemon.service b/.config/systemd/user/emacs-daemon.service new file mode 100644 index 0000000..279d83a --- /dev/null +++ b/.config/systemd/user/emacs-daemon.service @@ -0,0 +1,10 @@ +[Unit] +Description=Emacs deamon + +[Service] +Type=forking +ExecStart=/bin/bash -l -c 'emacs --daemon' +ExecStop=/bin/bash -l -c 'emacsclient -e "(kill-emacs)"' + +[Install] +WantedBy=default.target diff --git a/.config/systemd/user/gpg-agent.service b/.config/systemd/user/gpg-agent.service new file mode 100644 index 0000000..93c12b0 --- /dev/null +++ b/.config/systemd/user/gpg-agent.service @@ -0,0 +1,9 @@ +[Unit] +Description="GnuPG agent daemon" + +[Service] +Type=forking +ExecStart=/usr/bin/gpg-agent --daemon --write-env-file ${XDG_RUNTIME_DIR}/gpg + +[Install] +WantedBy=default.target diff --git a/.config/systemd/user/redshift@.service b/.config/systemd/user/redshift@.service new file mode 100644 index 0000000..41a0b7a --- /dev/null +++ b/.config/systemd/user/redshift@.service @@ -0,0 +1,11 @@ +[Unit] +Description=Redshift display colour temperature adjustment +Documentation=http://jonls.dk/redshift/ + +[Service] +Environment=DISPLAY=%I +ExecStart=/usr/bin/redshift +Restart=always + +[Install] +WantedBy=default.target diff --git a/.config/systemd/user/vncserver@.service b/.config/systemd/user/vncserver@.service index fa616d6..ef83ef2 100644 --- a/.config/systemd/user/vncserver@.service +++ b/.config/systemd/user/vncserver@.service @@ -3,7 +3,7 @@ Description=VNC desktop [Service] Type=simple -ExecStart=/bin/bash -l -c 'vncserver -fg :%I' +ExecStart=/bin/bash -l -c 'vncserver -fg %I' Restart=always ExecStopPost=/bin/rm /tmp/.X%I-lock /tmp/.X11-unix/X%I -- cgit v1.1-4-g5e80