mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-07-09 08:42:03 +08:00
6597675977
move those up
22 lines
517 B
Desktop File
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
|