Files
agnos-builder/userspace/files/comma.service
T
Shane Smiskol b8a6eded2b systemd: configure comma service to allow start/stop (#427)
* correct service config

* restart not compatible with oneshot, but never worked anyway
2025-01-17 16:29:25 -08:00

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