Files
agnos-builder/userspace/root/usr/lib/systemd/system/comma.service
T
2026-05-06 10:38:02 -07:00

22 lines
517 B
Desktop File

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