Systemd/man
Holger Hans Peter Freyther bb11271068 sched: Only setting CPUSchedulingPriority=rr doesn't work
A service that only sets the scheduling policy to round-robin
fails to be started. This is because the cpu_sched_priority is
initialized to 0 and is not adjusted when the policy is changed.

Clamp the cpu_sched_priority when the scheduler policy is set. Use
the current policy to validate the new priority.

Change the manual page to state that the given range only applies
to the real-time scheduling policies.

Add a testcase that verifies this change:

$ make test-sched-prio; ./test-sched-prio
[test/sched_idle_bad.service:6] CPU scheduling priority is out of range, ignoring: 1
[test/sched_rr_bad.service:7] CPU scheduling priority is out of range, ignoring: 0
[test/sched_rr_bad.service:8] CPU scheduling priority is out of range, ignoring: 100
2012-11-15 16:16:45 +01:00
..
.gitignore git: update .gitignore 2012-09-17 17:48:19 +02:00
Makefile build-sys: add small redirecting Makefiles to simplify compilation from within emacs 2010-05-17 01:44:03 +02:00
binfmt.d.xml man: replace tabs with spaces 2012-06-10 18:32:11 +02:00
bootup.xml man: fix a bunch of typos in docs 2012-09-13 19:34:24 +02:00
crypttab.xml man: fix a bunch of typos in docs 2012-09-13 19:34:24 +02:00
custom-html.xsl man: html - cross-ref man page references and add Index link 2012-07-17 23:04:48 +02:00
daemon.xml Reword sentences that contain psuedo-English "resp." 2012-10-16 01:03:01 +02:00
halt.xml man: fix typos in halt.xml and journalctl.xml 2012-09-13 19:35:18 +02:00
hostname.xml hostname: add new hostnamectl tool as text client for hostnamed 2012-10-17 21:25:42 +02:00
hostnamectl.xml man: typo fixes for new files in 195 2012-11-06 20:27:38 +01:00
journalctl.xml journal: properly serialize fields with multiple values into JSON 2012-10-25 01:24:44 +02:00
journald.conf.xml man: typo fixes for new files in 195 2012-11-06 20:27:38 +01:00
kernel-command-line.xml man: fix a bunch of typos in docs 2012-09-13 19:34:24 +02:00
locale.conf.xml man: fix a bunch of typos in docs 2012-09-13 19:34:24 +02:00
localectl.xml man: typo fixes for new files in 195 2012-11-06 20:27:38 +01:00
localtime.xml hostname: add new hostnamectl tool as text client for hostnamed 2012-10-17 21:25:42 +02:00
loginctl.xml man: typo fixes 2012-10-26 00:16:47 +02:00
logind.conf.xml logind: add 'lock' as possible choice for handling hw keys 2012-10-28 12:29:27 +01:00
machine-id.xml man: reword man page titles 2012-07-16 18:08:25 +02:00
machine-info.xml hostname: add new hostnamectl tool as text client for hostnamed 2012-10-17 21:25:42 +02:00
modules-load.d.xml man: replace tabs with spaces 2012-06-10 18:32:11 +02:00
os-release.xml Reword sentences that contain psuedo-English "resp." 2012-10-16 01:03:01 +02:00
pam_systemd.xml docs: typo fixes in pam_systemd.xml 2012-09-13 19:37:04 +02:00
runlevel.xml relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00
sd-daemon.xml Reword sentences that contain psuedo-English "resp." 2012-10-16 01:03:01 +02:00
sd-id128.xml man/sd-id128.xml: typo fix 2012-11-11 21:36:21 +01:00
sd-journal.xml journal: add ability to list values a specified field can take in all entries of the journal 2012-10-18 03:35:18 +02:00
sd-login.xml man: move header file man pages from section 7 to 3 2012-07-13 01:50:05 +02:00
sd-readahead.xml Reword sentences that contain psuedo-English "resp." 2012-10-16 01:03:01 +02:00
sd_booted.xml Reword sentences that contain psuedo-English "resp." 2012-10-16 01:03:01 +02:00
sd_get_seats.xml man: clarify the order of seats in sd_get_seats() is undefined 2012-08-09 15:57:01 +02:00
sd_id128_get_machine.xml man: Split sd_randomize(3) from sd_id128_get_{machine,boot}(3) 2012-07-13 22:55:52 +02:00
sd_id128_randomize.xml man: Split sd_randomize(3) from sd_id128_get_{machine,boot}(3) 2012-07-13 22:55:52 +02:00
sd_id128_to_string.xml man: typo fixes 2012-10-26 00:16:47 +02:00
sd_is_fifo.xml man: typo fixes 2012-10-26 00:16:47 +02:00
sd_journal_add_match.xml man: fix example 2012-10-26 01:18:40 +02:00
sd_journal_get_cursor.xml journal: when browsing the journal via browse.html allow clicking on entries to show their details 2012-10-10 22:41:03 +02:00
sd_journal_get_cutoff_realtime_usec.xml man: document sd_journal_get_cursor() 2012-07-13 20:39:05 +02:00
sd_journal_get_data.xml journal: add ability to list values a specified field can take in all entries of the journal 2012-10-18 03:35:18 +02:00
sd_journal_get_fd.xml journal: provide an API that allows client to figure out whether they need to recheck the journal manually for changes in regular intervals 2012-10-26 20:07:33 +02:00
sd_journal_get_realtime_usec.xml man: document sd_journal_get_cursor() 2012-07-13 20:39:05 +02:00
sd_journal_get_usage.xml journal: add call to determine current journal file disk usage 2012-09-07 23:20:28 +02:00
sd_journal_next.xml man: typo fixes 2012-10-26 00:16:47 +02:00
sd_journal_open.xml man: typo fixes 2012-10-26 00:16:47 +02:00
sd_journal_print.xml man: typo fixes 2012-10-26 00:16:47 +02:00
sd_journal_query_unique.xml man: fix compilation warning in sd_journal_query_unique example 2012-10-18 23:45:30 +02:00
sd_journal_seek_head.xml man: typo fixes 2012-10-26 00:16:47 +02:00
sd_journal_stream_fd.xml man: typo fixes 2012-10-26 00:16:47 +02:00
sd_listen_fds.xml Reword sentences that contain psuedo-English "resp." 2012-10-16 01:03:01 +02:00
sd_login_monitor_new.xml man: typo fixes 2012-10-26 00:16:47 +02:00
sd_notify.xml man: typo fixes 2012-10-26 00:16:47 +02:00
sd_pid_get_session.xml man: typo fixes 2012-10-26 00:16:47 +02:00
sd_readahead.xml Reword sentences that contain psuedo-English "resp." 2012-10-16 01:03:01 +02:00
sd_seat_get_active.xml man: typo fixes 2012-10-26 00:16:47 +02:00
sd_session_is_active.xml man: move header file man pages from section 7 to 3 2012-07-13 01:50:05 +02:00
sd_uid_get_state.xml man: typo fixes 2012-10-26 00:16:47 +02:00
shutdown.xml relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00
sysctl.d.xml man: fix sysctl.d(5) man page copy/paste mistake 2012-07-19 12:44:58 +02:00
systemctl.xml systemctl: add help for --type/-t 2012-11-15 11:54:57 +01:00
systemd-analyze.xml man: typo in systemd-analyze.xml 2012-06-27 10:46:35 +02:00
systemd-ask-password-console.service.xml Reword sentences that contain psuedo-English "resp." 2012-10-16 01:03:01 +02:00
systemd-ask-password.xml man: typo fixes 2012-10-26 00:16:47 +02:00
systemd-binfmt.service.xml man: fix 'sysytemd' typos 2012-06-13 00:09:25 +02:00
systemd-cat.xml Reword sentences that contain psuedo-English "resp." 2012-10-16 01:03:01 +02:00
systemd-cgls.xml man: typo fixes 2012-10-26 00:16:47 +02:00
systemd-cgtop.xml Reword sentences that contain psuedo-English "resp." 2012-10-16 01:03:01 +02:00
systemd-coredumpctl.xml man: typo fixes for new files in 195 2012-11-06 20:27:38 +01:00
systemd-cryptsetup-generator.xml man: typo fixes 2012-10-26 00:16:47 +02:00
systemd-cryptsetup@.service.xml man: document systemd-cryptsetup-generator 2012-06-27 14:51:47 +02:00
systemd-delta.xml systemd-delta.xml: document default value for --diff 2012-11-12 22:38:44 +01:00
systemd-detect-virt.xml man: typo fixes 2012-10-26 00:16:47 +02:00
systemd-fsck@.service.xml man: document systemd-cryptsetup 2012-06-27 12:19:35 +02:00
systemd-fstab-generator.xml man: typo fixes 2012-10-26 00:16:47 +02:00
systemd-getty-generator.xml man: fix invalid links to generator wiki pages 2012-10-02 11:52:29 -04:00
systemd-halt.service.xml man: typo fixes 2012-10-26 00:16:47 +02:00
systemd-hostnamed.service.xml man: add man page for localectl 2012-10-21 03:35:54 +02:00
systemd-inhibit.xml man: typo fixes 2012-10-26 00:16:47 +02:00
systemd-initctl.service.xml man: reword man page titles 2012-07-16 18:08:25 +02:00
systemd-journald.service.xml man: typo fixes 2012-10-26 00:16:47 +02:00
systemd-localed.service.xml man: add man page for localectl 2012-10-21 03:35:54 +02:00
systemd-logind.service.xml man: reword man page titles 2012-07-16 18:08:25 +02:00
systemd-machine-id-setup.xml man: reword man page titles 2012-07-16 18:08:25 +02:00
systemd-modules-load.service.xml man: update man pages to reflect the driver= to load-modules= rename 2012-07-04 01:12:53 +02:00
systemd-notify.xml man: reword man page titles 2012-07-16 18:08:25 +02:00
systemd-nspawn.xml man: typo fixes 2012-10-26 00:16:47 +02:00
systemd-quotacheck.service.xml man: document quotacheck 2012-06-27 01:17:49 +02:00
systemd-random-seed-load.service.xml man: document systemd-random-seed-load.service 2012-06-25 12:13:17 +02:00
systemd-readahead-replay.service.xml man: reword man page titles 2012-07-16 18:08:25 +02:00
systemd-remount-fs.service.xml man: reword man page titles 2012-07-16 18:08:25 +02:00
systemd-shutdownd.service.xml man: reword man page titles 2012-07-16 18:08:25 +02:00
systemd-suspend.service.xml man: explain a bit more detailed what happens on suspend 2012-10-31 00:48:20 +01:00
systemd-sysctl.service.xml man: fix 'sysytemd' typos 2012-06-13 00:09:25 +02:00
systemd-system-update-generator.xml man: fix invalid links to generator wiki pages 2012-10-02 11:52:29 -04:00
systemd-timedated.service.xml timedatectl: introduce new command line client for timedated 2012-10-17 21:25:42 +02:00
systemd-tmpfiles.xml man: reword man page titles 2012-07-16 18:08:25 +02:00
systemd-tty-ask-password-agent.xml man: fix --h vs. -h typos 2012-06-27 10:48:13 +02:00
systemd-udevd.service.xml man: typo fixes 2012-10-26 00:16:47 +02:00
systemd-update-utmp-runlevel.service.xml man: reword man page titles 2012-07-16 18:08:25 +02:00
systemd-user-sessions.service.xml man: reword man page titles 2012-07-16 18:08:25 +02:00
systemd-vconsole-setup.service.xml man: typo fixes 2012-10-26 00:16:47 +02:00
systemd.automount.xml man: typo fixes 2012-10-26 00:16:47 +02:00
systemd.conf.xml man: typo fixes 2012-10-26 00:16:47 +02:00
systemd.device.xml directive-index: add UDEV fields 2012-09-17 12:42:22 +02:00
systemd.exec.xml sched: Only setting CPUSchedulingPriority=rr doesn't work 2012-11-15 16:16:45 +01:00
systemd.journal-fields.xml man: minor updates 2012-10-26 01:18:41 +02:00
systemd.kill.xml Reword sentences that contain psuedo-English "resp." 2012-10-16 01:03:01 +02:00
systemd.mount.xml man: typo fixes 2012-11-01 23:35:34 +01:00
systemd.path.xml man: typo fixes 2012-11-01 23:35:34 +01:00
systemd.preset.xml man: add various links from man pages to appropriate wiki pages 2012-06-28 18:58:56 +02:00
systemd.service.xml man: update description of ExecStart and friends 2012-11-15 16:01:22 +01:00
systemd.snapshot.xml man: reword man page titles 2012-07-16 18:08:25 +02:00
systemd.socket.xml Revert "Implement SocketUser= and SocketGroup= for [Socket]" 2012-11-06 09:54:17 -05:00
systemd.special.xml man: typo fixes 2012-11-01 23:35:34 +01:00
systemd.swap.xml Reword sentences that contain psuedo-English "resp." 2012-10-16 01:03:01 +02:00
systemd.target.xml man: reword man page titles 2012-07-16 18:08:25 +02:00
systemd.timer.xml man: reword man page titles 2012-07-16 18:08:25 +02:00
systemd.unit.xml man: document that Documentation= follows an order 2012-10-31 00:13:55 +01:00
systemd.xml man: typo fixes 2012-10-26 00:16:47 +02:00
telinit.xml relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00
timedatectl.xml man: throw in an example of timedatectl output 2012-11-14 23:25:22 +01:00
tmpfiles.d.xml man: typo fixes 2012-10-26 00:16:47 +02:00
udev.xml man: typo fixes 2012-10-26 00:16:47 +02:00
udevadm.xml udev: add "udevadm hwdb --test=<modalias>" 2012-10-28 04:41:15 +01:00
vconsole.conf.xml man: typo fixes 2012-10-26 00:16:47 +02:00