scx/services/scx.service
Piotr Gorski 26d53233de
systemd-services: add one service for all schedulers and config file
Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
2024-01-27 00:41:00 +01:00

15 lines
297 B
Desktop File

[Unit]
Description=Start scx_scheduler
ConditionPathIsDirectory=/sys/kernel/sched_ext
[Service]
Type=simple
EnvironmentFile=/etc/default/scx
ExecStart=/bin/bash -c 'exec $SCX_SCHEDULER $SCX_FLAGS '
Restart=always
StandardError=journal
LogNamespace=sched-ext
[Install]
WantedBy=multi-user.target