chiark / gitweb /
systemctl: always consider unit files with no [Install] section but stored in /lib...
[elogind.git] / TODO
1 F15:
2
3 * swap units that are activated by one name but shown in the kernel under another are semi-broken
4
5 * NFS, networkmanager ordering issue (PENDING)
6
7 * NM should pull in network.target (PENDING)
8   https://bugzilla.redhat.com/show_bug.cgi?id=692008
9
10 * bluetooth should be possible to disable (PENDING)
11
12 * add fstab fields to add wait timeouts, change Wants to Requires by local-fs.target
13
14 * bind mounts are ignored
15   https://bugzilla.redhat.com/show_bug.cgi?id=682662
16
17 * 0595f9a1c182a84581749823ef47c5f292e545f9 is borked, freezes shutdown
18     (path: after installing inotify watches, recheck file again to fix race)
19
20 * get writev() /dev/kmsg support into the F15 kernel
21     https://lkml.org/lkml/2011/4/6/473
22   patched merged into -mm
23
24 * fix sd_is_socket() invocation in dbus
25
26 * fix default timeout values mentioned in man page
27
28 * New CK release, with sysinit.target dropping and TTY loop
29
30 * New Avahi package, enable it by default
31
32 * don't trim empty cgroups
33   https://bugzilla.redhat.com/show_bug.cgi?id=678555
34
35 Features:
36
37 * use pivot_root on shutdown so that we can unmount the root directory.
38
39 * make sure multiple sockets in a .socket file appear in the order they are listed
40   currently we get:
41     [Socket]
42     ListenSequentialPacket=@/org/kernel/udev/udevd    --> 4
43     ListenNetlink=kobject-uevent 1                    --> 3
44
45 * fix alsa mixer restore to not print error when no config is stored
46
47 * show enablement status in systemctl status
48
49 * write blog stories about:
50   - enabling dbus services
51   - status update
52   - you are a distro: why switch?
53
54 * allow port = 0 in .socket units
55
56 * rename systemd-logger to systemd-stdio-syslog-bridge
57
58 * introduce /usr/lib/binfmt.d/, /usr/lib/tmpfiles.d/
59
60 * take BSD file lock on tty devices when using them?
61
62 * avoid any flag files, or readahead files in /, we need to support r/o /
63   or / on tmpfs like Android setups.
64
65 * move readahead files into /var, look for them with .path units
66
67 * teach dbus to activate all services it finds in /etc/systemd/services/org-*.service
68
69 * get process transport into dbus for systemctl -P/-H
70
71 * document default dependencies
72
73 * support systemd.whitelist=/systemd.blacklist= on the kernel command
74   line.
75
76 * Find a way to replace /var/run, /var/lock directories with
77   symlinks during an RPM package upgrade (filesystem.rpm or systemd.rpm).
78   (lua code to create symlinks right away for new installations is in filesytem.rpm now)
79   We soon want to get rid of var-run.mount var-lock.mount units:
80     if mountpoint /run ; then
81           umount /var/run || :
82     else
83           mount --move /var/run /run || mount --bind /var/run /run
84     fi
85     mv /var/run /var/.run.save
86     ln -s /run /var/run
87     echo "R /var/.run.save" > /etc/tmpfiles.d/remove-run-save.conf
88
89 * when key file cannot be found, read it from kbd in cryptsetup
90
91 * add switch to systemctl to show enabled but not running services. Or
92   another switch that shows service that have been running since
93   booting but aren't running anymore.
94
95 * reuse mkdtemp namespace dirs in /tmp?
96
97 * recreate systemd's D-Bus private socket file on SIGUSR2
98
99 * be more specific what failed:
100     ...
101     Unmounting file systems.
102     Not all file systems unmounted, 1 left.
103     Disabling swaps.
104     Detaching loop devices.
105     Detaching DM devices.
106     Cannot finalize remaining file systems and devices, trying to kill remaining processes.
107     Unmounting file systems.
108     Not all file systems unmounted, 1 left.
109     Cannot finalize remaining file systems and devices, giving up.
110     ...
111
112 * check for compiled-in, but not active selinux, and don't print any warnings
113   about policy loading. Probably check for available selinux in /proc/filesystems,
114   and check for active selinux with getcon_raw() == "kernel"
115
116 * Support --test based on current system state
117
118 * systemctl enable as D-Bus call
119
120 * consider services with any kind of link in /etc/systemd/system enabled
121
122 * show failure error string in "systemctl status"
123
124 * make sure timeouts are applied to Type=oneshot services.
125
126 * Maybe implement "systemctl mask" and "systemctl unmask", but not
127   document it? When doing that add switch to make this temporary by
128   placing mask links in /dev.
129
130 * detect LXC environment
131
132 * invoke vhangup() before and after invoking getty
133     http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=3c95c985fa91ecf6a0e29622bbdd13dcfc5ce9f1
134
135 * support "auto" and "comment=systemd.automount" at the same time for an fstab entry
136
137 * Maybe store in unit files whether a service should be enabled by default on package installation
138   (belongs into a distro pattern though, not in an upstream package's service file)
139
140 * perhaps add "systemctl reenable" as combination of "systemctl disable" and "systemctl enable"
141
142 * need a way to apply mount options of api vfs from systemd unit files
143   (or some other modern source?) instead of fstab?
144
145 * maybe introduce ExecRestartPre=
146
147 * figure out what happened to bluez patch
148
149 * Patch systemd-fsck to use -C and pass console fd to it
150
151 * configurable jitter for timer events
152
153 * Support ProcessNeededForShutdown=true to allow stuff like mdmon to
154   be killed very late after the rootfs is read only? If implement pass
155   this to shutdown binary via command line argument.
156
157 * Integrate "mdadm --wait-clean". Maybe just let SIGTERM to mdmon trigger the
158   needed action
159
160 * dot output for --test showing the 'initial transaction'
161
162 * calendar time support in timer, iCalendar semantics for the timer stuff (RFC2445)
163   - check timerfd() patch: http://lkml.org/lkml/2010/11/23/290
164
165 * systemd --user
166   - get PR_SET_ANCHOR merged: http://lkml.org/lkml/2010/2/2/165
167
168 * add VT tracking:
169   - provide CK functionality
170   - start getty only when actual vt switch happens (same model as
171     socket on-demand activation). allocate the next free tty and
172     start a getty there. this way, pressing alt-f[1-12] will switch
173     through running X and getty sessions, and any unallocated
174     activated tty will start a new getty. the hardcoding of
175     getty[1-6] will entirely go away.
176   - http://git.kernel.org/?p=linux/kernel/git/gregkh/tty-2.6.git;a=commitdiff;h=fbc92a3455577ab17615cbcb91826399061bd789
177
178 * implicitly import "defaults" settings file into all types
179
180 * port over to LISTEN_FDS/LISTEN_PID:
181    - uuidd    HAVEPATCH
182    - rpcbind (/var/run/rpcbind.sock!) HAVEPATCH
183    - cups     HAVEPATCH
184    - postfix, saslauthd
185    - apache/samba
186    - libvirtd (/var/run/libvirt/libvirt-sock-ro)
187    - bluetoothd (/var/run/sdp! @/org/bluez/audio!)
188    - distccd
189
190 * fingerprint.target, wireless.target, gps.target, netdevice.target
191
192 * set_put(), hashmap_put() return values check. i.e. == 0 doesn't free()!
193
194 * io priority during initialization
195
196 * if a service fails too often, make the service enter failed mode, and the socket, too.
197
198 * systemctl list-jobs - show dependencies
199
200 * auditd service files
201
202 * add systemctl switch to dump transaction without executing it
203
204 * suspend, resume support?
205
206 * readahead: btrfs/LVM SSD detection
207
208 * add separate man page for [Install] settings
209
210 * allow runtime changing of log level and target
211
212 External:
213
214 * udisks should not use udisks-part-id, instead use blkid. also not probe /dev/loopxxx
215
216 * snd-seq should go, https://bugzilla.redhat.com/show_bug.cgi?id=676095
217
218 * gnome-shell python script/glxinfo/is-accelerated must die
219
220 * make cryptsetup lower --iter-time
221
222 * patch kernel for xattr support in /dev, /proc/, /sys and /sys/fs/cgroup.
223
224 * patch kernel for cpu feature modalias for autoloading aes/kvm/...
225     http://git.kernel.org/?p=linux/kernel/git/ak/linux-misc-2.6.git;a=shortlog;h=refs/heads/cpuid-match
226   (Rafael J. Wysocki's sysdev rework is on the way. After that CPUs can be exported a proper bus.)
227
228 * procps, psmisc, sysvinit-tools, hostname → util-linux-ng
229
230 https://bugzilla.redhat.com/show_bug.cgi?id=614245 -- plymouth
231 https://bugzilla.redhat.com/show_bug.cgi?id=612789 -- umount /cgroup on halt
232 https://bugzilla.redhat.com/show_bug.cgi?id=612728 -- /etc/rc.d/init.d/functions
233 https://bugzilla.redhat.com/show_bug.cgi?id=612712 -- pam_systemd
234 https://bugs.freedesktop.org/show_bug.cgi?id=29193 -- accountsservice
235 https://bugs.freedesktop.org/show_bug.cgi?id=29194 -- ConsoleKit
236 https://bugs.freedesktop.org/show_bug.cgi?id=29205 -- udisks
237 http://article.gmane.org/gmane.linux.bluez.kernel/6479 -- bluez
238 http://www.spinics.net/lists/linux-nfs/msg14371.html -- rpcbind
239 https://bugzilla.redhat.com/show_bug.cgi?id=617328 -- ntp
240 https://bugzilla.redhat.com/show_bug.cgi?id=617320 -- at
241 https://bugzilla.redhat.com/show_bug.cgi?id=617326 -- fprintd
242 https://bugzilla.redhat.com/show_bug.cgi?id=617333 -- yum
243 https://bugzilla.redhat.com/show_bug.cgi?id=617317 -- acpid
244 https://bugzilla.redhat.com/show_bug.cgi?id=617327 -- gpm
245 https://bugzilla.redhat.com/show_bug.cgi?id=617330 -- pcsc-lite
246 https://bugzilla.redhat.com/show_bug.cgi?id=617321 -- audit
247 https://bugzilla.redhat.com/show_bug.cgi?id=617316 -- abrt
248
249 Regularly:
250
251 * look for close() vs. close_nointr() vs. close_nointr_nofail()
252
253 * check for strerror(r) instead of strerror(-r)
254
255 * Use PR_SET_PROCTITLE_AREA if it becomes available in the kernel
256
257 * %m in printf() instead of strerror();
258
259 * pahole
260
261 * CFLAGS="-Wl,--gc-sections -Wl,--print-gc-sections -ffunction-sections -fdata-sections"