[Unit] DefaultDependencies=no Requires=comma-init.service Wants=magic.service After=comma-init.service Before=basic.target shutdown.target Conflicts=shutdown.target [Service] Type=oneshot RemainAfterExit=true User=comma ExecStart=/usr/bin/tmux new-session -d -s comma /usr/comma/comma.sh # TODO: send SIGTERM first, then kill after a timeout ExecStop=/usr/bin/tmux kill-session -t comma TimeoutStopSec=1 LimitRTPRIO=100 LimitNICE=-10 [Install] WantedBy=multi-user.target