mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-07-10 09:12:05 +08:00
b8a6eded2b
* correct service config * restart not compatible with oneshot, but never worked anyway
17 lines
367 B
Desktop File
17 lines
367 B
Desktop File
[Unit]
|
|
After=local-fs.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
|