a few important fixes, mostly improvements
[distro-setup] / subdir_files / .config / systemd / user / profanity.service
1 [Unit]
2 Description=profanity
3 # background: i originally started profanity as a system service after
4 # networking-online.target but strangely, it had a hidden lock on /p
5 # preventing it from unmounting, and the only thing in /p i can see it
6 # using is gpg. I could try to get this to run after the last target,
7 # which is default.target, but all I can find documented on how to do
8 # this is to do this strange unexplained thing of making a new target,
9 # aliasing it to the default target and also make it
10 # After=default.target. I figured this probably works and is simpler.
11 After=gpg-agent.service
12
13 [Service]
14 # tmux requirement
15 Type=forking
16
17 # new-session is a tmux command which allows launching profanity.
18 ExecStart=/usr/bin/tmux -L profanity new-session -d profanity
19
20 [Install]
21 WantedBy=default.target