Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-01-27 | Replace mkostemp+unlink with open(O_TMPFILE) | Zbigniew Jędrzejewski-Szmek | |
This will only work on Linux >= 3.11, and probably not on all filesystems. Fallback code is provided. | |||
2014-01-27 | bus: when we cannot bus activate a service because we go down, drop one | Lennart Poettering | |
message from the queue | |||
2014-01-27 | core: require mounts for the root and working directories | Zbigniew Jędrzejewski-Szmek | |
We know that launching a unit will fail if some required directories haven't been mounted yet. There's no point in starting it just to have it fail even before it gets a chance to run. | |||
2014-01-27 | core: simplify check for path absoluteness | Zbigniew Jędrzejewski-Szmek | |
Just a microopt. | |||
2014-01-27 | manager: rearm jobs timer | Zbigniew Jędrzejewski-Szmek | |
It would fire just once. Also fix units from sec to usec as appropriate. Decrease the switching interval to 1/3 s, so that when the time remaining is displayed with 1s precision, it doesn't jump by 2s every once in a while. Also, the system is feels noticably faster when the status changes couple of times per second instead of every few seconds. | |||
2014-01-27 | manager: print ephemeral information about running jobs' timeouts | Zbigniew Jędrzejewski-Szmek | |
Produces output like: [ *** ] (1 of 2) A start job is running for slow.service (33s / 1min 30s) The first nubmer is the time since job start, the second is the job timeout. | |||
2014-01-27 | core: add function to tell when job will time out | Zbigniew Jędrzejewski-Szmek | |
Things will continue when either the job timeout or the unit timeout is reached. Add functionality to access that info. | |||
2014-01-22 | sd-rtnl: simplify sd_rtnl_message_addr_new() | Tom Gundersen | |
Split out into sd_rtnl_message_addr_set_{prefixlen,flags,scope}(). | |||
2014-01-22 | sd-rtnl: link - allow setting the change mask | Tom Gundersen | |
2014-01-20 | exec: introduce PrivateDevices= switch to provide services with a private /dev | Lennart Poettering | |
Similar to PrivateNetwork=, PrivateTmp= introduce PrivateDevices= that sets up a private /dev with only the API pseudo-devices like /dev/null, /dev/zero, /dev/random, but not any physical devices in them. | |||
2014-01-12 | core: don't allow setting NOTIFY_SOCKET and similar env vars we need ↵ | Lennart Poettering | |
ourselves via SetEnvironment bus calls We just quietly eat them up, so that simple environment importing still works without error. | |||
2014-01-12 | core: clean up environment block for --user instances a bit | Lennart Poettering | |
2014-01-11 | make socket_instantiate_service use cleanup gcc attribute | Michael Scherer | |
2014-01-11 | core: fix unused variable | Zbigniew Jędrzejewski-Szmek | |
2014-01-09 | core: fix lack of notifications after reload | Zbigniew Jędrzejewski-Szmek | |
2014-01-08 | Improve messages about user mode a bit | Zbigniew Jędrzejewski-Szmek | |
2014-01-07 | mount: don't creat local-fs.target links for mount units when runnin in user ↵ | Lennart Poettering | |
mode | |||
2014-01-07 | core: do not add implicit dbus.socket dependency | Kay Sievers | |
Sockets are ordered before sockets.target anyway, and sockets.target is ordered before basic.target, and hence all bus services end up being ordered after dbus.socket anyway. Since for kdbus clients dbus.socket is obsolete, let's not add this dependency explicitly. Also, it's hot in Australia and we are going for breakfast now. | |||
2014-01-07 | core: --user -- add basic.target an sort against it like --system does | Kay Sievers | |
2014-01-07 | core: --user -- move generator directories from /tmp to $XDG_RUNTIME_DIR | Kay Sievers | |
2014-01-05 | Remove unused variables | Zbigniew Jędrzejewski-Szmek | |
2014-01-05 | strv: multiple cleanups | Simon Peeters | |
- turn strv_merge into strv_extend_strv. appending strv b to the end of strv a instead of creating a new strv - strv_append: remove in favor of strv_extend and strv_push. - strv_remove: write slightly more elegant - strv_remove_prefix: remove unused function - strv_overlap: use strv_contains - strv_printf: STRV_FOREACH handles NULL correctly | |||
2014-01-05 | shared: procfs_file_alloca: handle pid==0 | Simon Peeters | |
when pid is set to 0 use /proc/self | |||
2014-01-05 | swap: remove if/else with the same data path | Stefan Beller | |
This was introduced in e1770af812 (2012-02-03, swap: replace failure boolean by result enum). This just removes unneeded lines of code, no functional change. | |||
2014-01-03 | bus: always create --user bus when kdbus is active | Kay Sievers | |
We set the variable in the unit file for --user, so this check is always true. | |||
2014-01-02 | core: fix gcc unused variable warning | Zbigniew Jędrzejewski-Szmek | |
2014-01-02 | Introduce cleanup functions for cap_free | Zbigniew Jędrzejewski-Szmek | |
Unfortunately a different cleanup function is necessary per type, because cap_t** and char** are incompatible with void**. | |||
2014-01-02 | Use format patterns for usec_t, pid_t, nsec_t, usec_t | Zbigniew Jędrzejewski-Szmek | |
It is nicer to predefine patterns using configure time check instead of using casts everywhere. Since we do not need to use any flags, include "%" in the format instead of excluding it like PRI* macros. | |||
2014-01-02 | core/service: check if mainpid matches only if it is set | Zbigniew Jędrzejewski-Szmek | |
https://bugzilla.redhat.com/show_bug.cgi?id=1047304 | |||
2014-01-02 | core/manager: print info about interesting signals | Zbigniew Jędrzejewski-Szmek | |
Information about signals which are not routinely received by systemd are printed at info level. This should make it easier to see what is happening in the system. | |||
2014-01-02 | core/service: tweak messages on operation timeouts | Zbigniew Jędrzejewski-Szmek | |
2013-12-30 | core: Forgot to dereference pointer when checking for NULL | Stefan Beller | |
Actually we already checked for !rt before, now we'd like to examine the return value of the memory allocation. | |||
2013-12-28 | bus: fix a couple of format string mistakes | Lennart Poettering | |
2013-12-27 | selinux: Check access vector for enable/disable perm for each unit file | Lubomir Rintel | |
SELinux check will be done using the context of the unit file as as a target instead of the default init_t context, allowing selinux control on the level of individual units. https://bugzilla.redhat.com/show_bug.cgi?id=1022762 | |||
2013-12-26 | Use enums to make it obvious what boolean params mean | Zbigniew Jędrzejewski-Szmek | |
Suggested-by: Russ Allbery <rra@debian.org> | |||
2013-12-26 | systemctl: allow globbing in commands which take multiple unit names | Zbigniew Jędrzejewski-Szmek | |
2013-12-26 | bus: make system bus kdbus node world-accessible | Lennart Poettering | |
2013-12-25 | build-sys: minor fixes found with cppcheck | Lennart Poettering | |
2013-12-25 | unit: include peer identity in description of per-connection ↵ | Lennart Poettering | |
socket-activated services | |||
2013-12-24 | util: unify SO_PEERCRED/SO_PEERSEC invocations | Lennart Poettering | |
Introduce new call getpeercred() which internally just uses SO_PEERCRED but checks if the returned data is actually useful due to namespace quirks. | |||
2013-12-23 | core: when we close the notify fd, we also need to free its event source | Lennart Poettering | |
2013-12-23 | log: als turn on debug logging in non-PID1 if /proc/cmdline contains "debug" | Lennart Poettering | |
2013-12-22 | sd-daemon: introduce sd_watchdog_enabled() for parsing $WATCHDOG_USEC | Lennart Poettering | |
Also, introduce a new environment variable named $WATCHDOG_PID which cotnains the PID of the process that is supposed to send the keep-alive events. This is similar how $LISTEN_FDS and $LISTEN_PID work together, and protects against confusing processes further down the process tree due to inherited environment. | |||
2013-12-22 | shared: switch our hash table implementation over to SipHash | Lennart Poettering | |
SipHash appears to be the new gold standard for hashing smaller strings for hashtables these days, so let's make use of it. | |||
2013-12-22 | core: the cgroup properties are not actually const | Lennart Poettering | |
2013-12-22 | core: no need to list properties for PropertiesChanged messages anymore | Lennart Poettering | |
Since the vtable includes this information anyway, let's just use that | |||
2013-12-22 | bus: decorate the various object vtables with SD_BUS_VTABLE_PROPERTY_CONST ↵ | Lennart Poettering | |
where appropriate | |||
2013-12-21 | core: replace readdir_r with readdir | Florian Weimer | |
2013-12-21 | core: make check for Disconnected message more precise | Lennart Poettering | |
2013-12-21 | core: pass notify fd across reexecs | Lennart Poettering | |
That way we the random socket name stays stable across reexec and we won't lose client messages. |