Commit graph

466 commits

Author SHA1 Message Date
Lennart Poettering 246756ca92 install: optionally remove all symlinks from configuration tree recursively 2010-07-18 01:33:05 +02:00
Lennart Poettering 92abbefbef execute: bump up log level of executed processes that failed 2010-07-17 04:17:30 +02:00
Lennart Poettering faf919f1eb job: timeout every job independently of the unit 2010-07-17 04:09:28 +02:00
Lennart Poettering 064f51fa29 unit: consider only_by_dependency setting when clients ask whether a unit is startable 2010-07-17 04:07:49 +02:00
Lennart Poettering d06428248a systemctl: extend list-units output a little 2010-07-17 00:59:03 +02:00
Lennart Poettering 5de9682cd6 unit: introduce OnFailure dependencies to activate units on failure of other units, as a way to implement an automatic rescue shell 2010-07-17 00:58:47 +02:00
Lennart Poettering 45fb0699c4 systemctl: warn when operating on service files that changed on disk but haven't been reloaded 2010-07-17 00:57:51 +02:00
Lennart Poettering 73608ed994 device: rename 'available' state to 'plugged' 2010-07-16 21:32:34 +02:00
Lennart Poettering 2d3b2c0032 units: introduce smartcard.target 2010-07-16 21:32:11 +02:00
Lennart Poettering 0ff3dea700 systemctl: always show units with active jobs in list-units output 2010-07-16 21:31:34 +02:00
Lennart Poettering b15bdda870 socket: prepare for proper selinux labelling of sockets 2010-07-16 19:42:27 +02:00
Lennart Poettering 0009d2a633 socket: don't allow mixing of accepting and non-accepting sockets in the same unit 2010-07-16 19:41:50 +02:00
Lennart Poettering cac6f7c872 service: refuse to start services that are configured for per-connection instantiation to start without a socket 2010-07-16 19:41:11 +02:00
Lennart Poettering 276c3e78ce unit: allow units to have more than one instance id 2010-07-16 19:40:24 +02:00
Lennart Poettering 6c155fe3d0 path,timer: order units after sysinit by default 2010-07-16 18:57:21 +02:00
Lennart Poettering 772a599e4f target: if the user configured a manual ordering between target units and the unit they require don't contradict that automatically 2010-07-16 03:17:34 +02:00
Lennart Poettering ad780f1991 main: disable nscd if we can to avoid deadlock, just in case 2010-07-16 03:07:53 +02:00
Lennart Poettering 949c651032 mount-setup: consider a few file systems API mounts and ignore them 2010-07-16 02:56:57 +02:00
Lennart Poettering 992f87e192 install: refuse installation of symlinked units 2010-07-16 02:56:40 +02:00
Lennart Poettering 4445a87557 systemctl: add to command for virtualizing the dependency tree with graphviz 2010-07-16 02:56:00 +02:00
Lennart Poettering d04247cf25 cgls: rename source file to cgls.c, since we have no prefix for any of the other files either 2010-07-14 15:09:27 +02:00
Lennart Poettering 73883adc1e socket: don't close sockets when activating per-connection units 2010-07-14 04:47:57 +02:00
Lennart Poettering 6f28c033ec systemctl: introduce try-restart and reload-or-restart commands 2010-07-13 20:20:36 +02:00
Lennart Poettering 3dda9fc3a7 manager: always allow stopping of units that failed to load 2010-07-13 20:07:00 +02:00
Lennart Poettering 1d2e23ab72 main: introduce -D as quick acess to debugging 2010-07-13 20:06:33 +02:00
Lennart Poettering 53b543608e install: implement systemd-install realize 2010-07-13 20:05:47 +02:00
Lennart Poettering 9f611ad82e unit: disable retroactive starting/stopping of units when deserializing 2010-07-13 19:01:20 +02:00
Lennart Poettering 4c633005ea cgroup: treat non-existing cgroups like empty ones, to deal with races 2010-07-13 19:00:01 +02:00
Lennart Poettering edb9aaa8b2 main: replace --running-as= by --session and --system do mimic related tools and D-Bus 2010-07-13 18:57:58 +02:00
Lennart Poettering 17df43e32c udev: use prettier subsystem paths for bluetooth devices, too 2010-07-13 02:40:24 +02:00
Lennart Poettering 935e3e5cc7 udev: ignore dynamic ram/loop block devices 2010-07-13 02:40:08 +02:00
Lennart Poettering 0f13830395 units: make maximum unit name longer, since DM names manager to hit the limit 2010-07-13 02:18:13 +02:00
Lennart Poettering 7e6e7b06e5 unit: retroactively start dependencies for job-less units too 2010-07-13 02:17:53 +02:00
Lennart Poettering ee5f3479e2 device: properly create dependencies 2010-07-13 02:17:26 +02:00
Lennart Poettering 7c9c5d0eb1 units: dm is an awful piece of work 2010-07-13 02:17:06 +02:00
Lennart Poettering da78e1b444 units: introduce bluetooth.target/printer.target which are activated if the right hardware is plugged in 2010-07-13 02:16:44 +02:00
Lennart Poettering 7c610628cd socket: when going down, flush all queued sockets 2010-07-13 00:52:17 +02:00
Lennart Poettering ba3e67a785 socket: when the socket is supposed to stop, don't accept any connections anymore 2010-07-13 00:27:27 +02:00
Lennart Poettering f057408c9c units: introduce emergency.target 2010-07-12 23:49:20 +02:00
Lennart Poettering 2edd4434e5 mount: add automatic start ordering dependencies for mounts 2010-07-12 22:55:27 +02:00
Lennart Poettering 21d21ea42e execute: inherit from original input, not the fixed up 2010-07-12 22:04:59 +02:00
Lennart Poettering 5830833f7c service: allow input from terminal when executing more than one start-pre or stop-post command 2010-07-12 21:56:51 +02:00
Lennart Poettering 85d73053f2 execute: reword comment 2010-07-12 21:53:36 +02:00
Lennart Poettering 3fe5e5d476 util: reset terminal even harder 2010-07-12 21:40:43 +02:00
Lennart Poettering 7bc0351dd8 util: fix error handling in acquire_terminal() 2010-07-12 20:35:14 +02:00
Lennart Poettering fc9b2a84dc execute: close inherited fds earlier 2010-07-12 20:34:53 +02:00
Lennart Poettering 4a3c7c7952 pam: remove leftover libcgroup inclusion 2010-07-12 18:43:21 +02:00
Lennart Poettering 35d2e7ec19 cgroup: reimplement the last bit of libcgroup functionality natively 2010-07-12 18:16:44 +02:00
Lennart Poettering dbd821acb4 cgroup: implement cg_get_path natively 2010-07-12 03:15:20 +02:00
Lennart Poettering 3b6fdb5b5a unit: introduce IgnoreDependencyFailure= 2010-07-12 03:07:02 +02:00
Lennart Poettering f6023656e1 service: trim cgroups if services that are "active" but "exited" 2010-07-12 03:07:02 +02:00
Lennart Poettering b708e7cea9 execute: optionally ignore return status of invoked commands 2010-07-12 03:07:01 +02:00
Lennart Poettering a013bd94cc sd-daemon: fix abstract namespace sockaddr for notification socket 2010-07-11 23:49:20 +02:00
Lennart Poettering c2ad51299a install: fix wrong dbus connection shutdown 2010-07-11 23:02:46 +02:00
Lennart Poettering b5f776cee9 execute: use right logger socket 2010-07-11 04:38:40 +02:00
Lennart Poettering 983d9c9015 units: turn Wants=shutdown back into Requires=shutdown to avoid removal of jobs due to the impact minimizer 2010-07-11 04:22:00 +02:00
Lennart Poettering 51bc5d4b84 dbus: get rid of last non-private busses 2010-07-11 04:10:28 +02:00
Lennart Poettering c0bd0cf7ff dbus: don't hit an assert if we sent a changed signal for something not in the dbus queue (i.e. because it was deleted before it was fully created 2010-07-11 03:59:59 +02:00
Lennart Poettering 90d473a1c0 systemctl: turn --replace into --fail 2010-07-11 03:59:59 +02:00
Lennart Poettering dce3acd2e2 Merge branch 'master' of ssh://git.freedesktop.org/git/systemd 2010-07-11 03:49:22 +02:00
Lennart Poettering b12c1e7cf7 socket: pass minimal abstract socket names 2010-07-11 02:23:11 +02:00
Lennart Poettering b574246b4f dbus: use private connections wherever possible 2010-07-11 02:22:46 +02:00
Lennart Poettering 17bb73821c systemctl: move status further down 2010-07-11 01:20:57 +02:00
Lennart Poettering 7740296dcf service: fix minor memory leak 2010-07-11 00:52:28 +02:00
Lennart Poettering 65e92d67b6 manager: free dbus error when ignoring it 2010-07-11 00:52:19 +02:00
Lennart Poettering fe51822e71 manager: introduce unit path cache to minimize disk accesses 2010-07-11 00:52:00 +02:00
Lennart Poettering 9014a8bd7a dbus: suppress duplicate message when reusing bus for system and session 2010-07-11 00:51:28 +02:00
Lennart Poettering c6c18be35b cgroup: kill processes, not tasks and other cgroup changes 2010-07-11 00:50:49 +02:00
Lennart Poettering 5509654721 cgroup: make cgroup controller name a constant 2010-07-10 17:38:50 +02:00
Lennart Poettering fb38518151 unit: trim cgroups when going down 2010-07-10 17:34:42 +02:00
Lennart Poettering 582a507f1a systemctl: show exec status of all exited programs 2010-07-10 15:42:24 +02:00
Lennart Poettering 3f6c78dceb service: allow immediate stopping while starting 2010-07-10 04:52:00 +02:00
Lennart Poettering 82c64bf578 snapshot: fix deserialization 2010-07-10 04:51:03 +02:00
Lennart Poettering 1e001f52d2 main: add a few more useful diagnostic log messages 2010-07-10 04:50:19 +02:00
Lennart Poettering 2e22afe909 execute: add ability to configure the kill signal 2010-07-10 04:49:37 +02:00
Lennart Poettering 73c33e7f22 mount: add implicit umount.target conflicts only in system mode 2010-07-10 04:46:58 +02:00
Lennart Poettering 41e450596a automount: refuse automounts for the root file system 2010-07-10 02:41:25 +02:00
Lennart Poettering 4e67ddd6b3 units: introduce umount.target for unmounting all file systems 2010-07-10 02:41:06 +02:00
Lennart Poettering b8131a87cc systemctl: show connection counters only for Accept=yes sockets 2010-07-10 00:55:44 +02:00
Lennart Poettering 83bda35801 build-sys: drop special name hack for dbus.service since a native service file is now shipped upstream dbus 2010-07-10 00:22:38 +02:00
Lennart Poettering 25366e094c socket: fix loading of .service files for .socket files 2010-07-09 23:43:16 +02:00
Lennart Poettering a821caaae1 main: make it possible to run a system daemon along side an aloready running one for testing purposes 2010-07-09 23:43:16 +02:00
Lennart Poettering 71a6f75381 install: properly parse --realize=reload 2010-07-09 23:43:16 +02:00
Lennart Poettering ca326f6f2d main: introduce $SYSTEMD_SKIP_API_MOUNTS to disable mounting of API FS 2010-07-09 00:03:09 +02:00
Lennart Poettering b4f10a5e89 install: various improvements
Rename --start to --realize, to make things less confusing when doing
"systemctl stop --realize foo.service".

Introduce --realize=reload.

Don't talk to systemd when run within a chroot, or when systemd isn't
running.
2010-07-08 21:39:01 +02:00
Lennart Poettering bc8c2f5c54 systemctl: short cut things if we aren't root and the user requested a reboot to suppress unnecessary wall message 2010-07-08 21:36:40 +02:00
Kay Sievers d47b555bb6 systemctl: don't actually reboot/poweroff/halt if only a wtmp update is requested 2010-07-08 21:36:40 +02:00
Lennart Poettering e34b6159f3 cgls: fix missing initialization 2010-07-08 21:17:41 +02:00
Lennart Poettering fa776d8e96 cgls: beef up control group dumping and introduce cgls tool 2010-07-08 21:01:42 +02:00
Lennart Poettering ab35fb1bc6 systemctl: filter and sort member pid of cgroup 2010-07-08 06:08:32 +02:00
Lennart Poettering f8820b628c service: don't enable native services via legacy sysv symlinks anymore 2010-07-08 05:29:46 +02:00
Lennart Poettering 301056b7a0 util: fix missing memory initialization 2010-07-08 05:23:34 +02:00
Lennart Poettering c368608323 mount: fix confirm spawn setting 2010-07-08 05:22:34 +02:00
Lennart Poettering 4c90c122af dbus: add missing dbus-errors.h header 2010-07-08 04:24:09 +02:00
Lennart Poettering 420a0166a2 man: document variable substitution 2010-07-08 04:19:54 +02:00
Lennart Poettering fab56fc541 execute: support minimal environment variable replacement when executing processes 2010-07-08 04:09:59 +02:00
Lennart Poettering 1e3ad081ef execute: if the main process of a service already owns the TTY, don't wait for acquiring it again in the reload/stop step 2010-07-08 04:09:17 +02:00
Lennart Poettering 398ef8ba02 dbus: make errors reported via D-Bus more useful 2010-07-08 02:43:18 +02:00
Lennart Poettering 2105e76a77 service: set env var for stop/reload commands 2010-07-08 00:47:35 +02:00
Lennart Poettering 9c2d9caab2 job: when converting restart jobs, move them to WAITING state 2010-07-08 00:28:04 +02:00
Lennart Poettering 46d95c0fe0 dbus: log received message only once, in filter function 2010-07-08 00:27:09 +02:00
Lennart Poettering e167fb86f6 util: handle \s escape as defined in the XDG spec properly in cunescape() 2010-07-07 22:28:51 +02:00
Lennart Poettering 923f8d76dc dbus: shut down bus connection cleanly and fully when a direct client disconnects 2010-07-07 22:28:02 +02:00
Lennart Poettering 61e5d8ed87 service: allow configuration of more than one Exec command in one line 2010-07-07 20:59:20 +02:00
Lennart Poettering f60f22dfbb util: use quoted word parsing where applicable 2010-07-07 20:58:41 +02:00
Lennart Poettering 6febfd0d4b util: introduce cunescape_length() 2010-07-07 20:58:02 +02:00
Lennart Poettering 0bab36f250 util: properly handle escaped quotes in words in split_quoted() 2010-07-07 20:57:47 +02:00
Lennart Poettering f3d4cc0148 util: fix handling of unknown escapes in cunescape() 2010-07-07 20:57:10 +02:00
Lennart Poettering 3dab29438c conf-parser: support continuation lines with trailing backslashes in lines 2010-07-07 18:20:42 +02:00
Lennart Poettering 54165a3939 log: bump up a number of log messages so that they are shown even if debug logging is disabled, for diagnostic purposes 2010-07-07 17:57:54 +02:00
Lennart Poettering e015090f32 main: always log when we reexecute or reload 2010-07-07 17:44:11 +02:00
Lennart Poettering af2ab1f9a3 service: fix parsing word size functions 2010-07-07 17:42:06 +02:00
Lennart Poettering 8f75a603ec util: implement safe_atolu based on safe_atolli/safe_atoi, depending on word size 2010-07-07 17:40:25 +02:00
Lennart Poettering acb591e452 execute: change stdout inherit logic, when run as PID 1 use /dev/null 2010-07-07 04:37:42 +02:00
Lennart Poettering ecdbca40bd service: serialize exec status 2010-07-07 04:13:20 +02:00
Lennart Poettering 7c70671781 main: lower default log level to INFO 2010-07-07 04:13:20 +02:00
Lennart Poettering 2e54424d83 util: minor simplification when printing welcome text 2010-07-07 04:13:20 +02:00
Lennart Poettering e0376b177c systemctl: minor beautifications 2010-07-07 04:13:19 +02:00
Lennart Poettering a822056bca initctl: check peer credentials after connection 2010-07-07 04:13:19 +02:00
Lennart Poettering f4579ce704 dbus: don't try to run AddMatch when connected to a private bus 2010-07-07 04:13:19 +02:00
Lennart Poettering 7b97f47732 dbus: send reload completion message on right connection 2010-07-07 02:21:42 +02:00
Lennart Poettering ed4c1cc672 unit: when reading description from LSB prefer short over long description 2010-07-07 02:21:42 +02:00
Lennart Poettering 9aab5a731d unit: don't cancel dependent jobs if a stopped daemon returned an error code 2010-07-07 02:21:41 +02:00
Lennart Poettering 7e61bf2019 systemctl: minor cosmetic fixes 2010-07-07 02:21:41 +02:00
Lennart Poettering 455d8dc9ff main: show welcome string only when asked for 2010-07-07 01:51:44 +02:00
Martin Mikkelsen fd8bccfbf9 sd-daemon: Fix path check in sd_is_fifo()
sd_is_fifo() did fstat on the file descriptor twice instead of stating
the supplied path.
2010-07-07 01:41:59 +02:00
Lennart Poettering 487393e9f1 main: implement manager configuration file 2010-07-07 01:10:27 +02:00
Lennart Poettering c846ff4798 main: show welcome message on boot 2010-07-07 00:25:41 +02:00
Lennart Poettering 9e58ff9c5c manager: optionally print status updates to console on boot 2010-07-07 00:00:59 +02:00
Lennart Poettering fa0f4d8a3a main: add a native implementation of the 'nomodules' kernel option understood by fedora init scripts 2010-07-06 20:34:28 +02:00
Lennart Poettering 057fbb5885 util: fix space calculation in get_process_cmdline() 2010-07-06 20:33:54 +02:00
Lennart Poettering ed2d7a4465 systemctl: when we cannot load a unit, retry with getting it 2010-07-06 20:33:54 +02:00
Lennart Poettering 894ba510aa dbus: fix segfault with direct local connections 2010-07-06 19:02:54 +02:00
Lennart Poettering fc6071bfb3 systemctl: don't use UTF directly 2010-07-06 05:55:41 +02:00
Lennart Poettering 5f75059770 systemctl: fix parsing of cgroup contents 2010-07-06 05:38:12 +02:00
Lennart Poettering 9a1ac7b9ae install: implement --start option 2010-07-06 05:06:40 +02:00
Lennart Poettering c59760eeda systemctl: show cgroup contents in status 2010-07-05 03:06:02 +02:00
Lennart Poettering 61cbdc4b30 systemctl: implement 'status' command 2010-07-05 02:40:39 +02:00
Lennart Poettering 7492290434 turn negative options into positive options 2010-07-05 01:08:13 +02:00
Lennart Poettering a567261a29 dbus: send signals about jobs to the clients having created them unconditionally, and thus get rid of broadcast signals in most cases 2010-07-05 00:58:07 +02:00
Lennart Poettering 552e4331bf systemctl: use format_timespan() where applicable 2010-07-04 21:18:06 +02:00
Lennart Poettering fae20b110f dbus: fix unclean shut-down 2010-07-04 21:17:40 +02:00
Lennart Poettering 03fae01822 uniformly suffix time span properties with their unit 2010-07-04 21:12:10 +02:00
Lennart Poettering 393a2f9be1 man: update systemctl man page 2010-07-04 20:46:12 +02:00
Lennart Poettering fe68089df6 dbus: complete exec command coverage 2010-07-04 20:38:14 +02:00
Lennart Poettering b58b41160f dbus: complete exec status coverage 2010-07-04 18:49:58 +02:00
Lennart Poettering 14ad1d1437 dbus: include NextElapse field in timer properties 2010-07-04 16:48:24 +02:00
Lennart Poettering 82c121a475 dbus: complete exec coverage 2010-07-04 16:44:58 +02:00
Lennart Poettering d264aa332a dbus: complete coverage of service units 2010-07-04 05:14:30 +02:00
Lennart Poettering 4e1e43c8f0 dbus: complete socket unit coverage 2010-07-04 05:07:31 +02:00