]> err.no Git - systemd/log
systemd
14 years agoexecute: minor cleanups
Lennart Poettering [Tue, 13 Apr 2010 17:02:19 +0000 (19:02 +0200)]
execute: minor cleanups

14 years agomain: expclitly ignore signal when executing crash shell
Lennart Poettering [Tue, 13 Apr 2010 16:52:56 +0000 (18:52 +0200)]
main: expclitly ignore signal when executing crash shell

14 years agoutil: reset nl/cr flags on terminal when resetting
Lennart Poettering [Tue, 13 Apr 2010 16:51:22 +0000 (18:51 +0200)]
util: reset nl/cr flags on terminal when resetting

14 years agoexecute: chown() the tty when running owning them
Lennart Poettering [Tue, 13 Apr 2010 16:50:43 +0000 (18:50 +0200)]
execute: chown() the tty when running owning them

14 years agoservice: don't timeout special services
Lennart Poettering [Tue, 13 Apr 2010 16:39:37 +0000 (18:39 +0200)]
service: don't timeout special services

14 years agoexecute: get rid of gcc warning
Lennart Poettering [Tue, 13 Apr 2010 16:37:36 +0000 (18:37 +0200)]
execute: get rid of gcc warning

14 years agounits: install a few basic units by default
Lennart Poettering [Tue, 13 Apr 2010 03:18:12 +0000 (05:18 +0200)]
units: install a few basic units by default

14 years agounit: allow state change from running to restarting
Lennart Poettering [Tue, 13 Apr 2010 02:51:38 +0000 (04:51 +0200)]
unit: allow state change from running to restarting

14 years agoexecute: reset signal handlers when executing
Lennart Poettering [Tue, 13 Apr 2010 02:49:50 +0000 (04:49 +0200)]
execute: reset signal handlers when executing

14 years agomain: freeze instead of exiting when run as init
Lennart Poettering [Tue, 13 Apr 2010 02:19:02 +0000 (04:19 +0200)]
main: freeze instead of exiting when run as init

14 years agomain: try to block signals before executing crash shell
Lennart Poettering [Tue, 13 Apr 2010 02:07:19 +0000 (04:07 +0200)]
main: try to block signals before executing crash shell

14 years agoservice: add basic validation hooks
Lennart Poettering [Tue, 13 Apr 2010 02:00:03 +0000 (04:00 +0200)]
service: add basic validation hooks

14 years agomacro: hookup assert logic with log logic
Lennart Poettering [Tue, 13 Apr 2010 01:59:39 +0000 (03:59 +0200)]
macro: hookup assert logic with log logic

14 years agoservice: fix restart enum name
Lennart Poettering [Tue, 13 Apr 2010 01:26:20 +0000 (03:26 +0200)]
service: fix restart enum name

14 years agomanager: start D-Bus on SIGUSR2
Lennart Poettering [Tue, 13 Apr 2010 01:20:22 +0000 (03:20 +0200)]
manager: start D-Bus on SIGUSR2

14 years agomanager: we are not interested in SIGSTOP notifications
Lennart Poettering [Tue, 13 Apr 2010 00:36:56 +0000 (02:36 +0200)]
manager: we are not interested in SIGSTOP notifications

14 years agomain: when ignoring a signal set SA_RESTART
Lennart Poettering [Tue, 13 Apr 2010 00:36:19 +0000 (02:36 +0200)]
main: when ignoring a signal set SA_RESTART

14 years agoload-fragment: simplify fragment loading code by using macros
Lennart Poettering [Tue, 13 Apr 2010 00:22:41 +0000 (02:22 +0200)]
load-fragment: simplify fragment loading code by using macros

14 years agomanager: fix printing of child process names
Lennart Poettering [Tue, 13 Apr 2010 00:10:17 +0000 (02:10 +0200)]
manager: fix printing of child process names

14 years agorework tty handling
Lennart Poettering [Tue, 13 Apr 2010 00:06:27 +0000 (02:06 +0200)]
rework tty handling

We now make sure to run all services in their own session, possibly with
a controlling terminal.

This also extends the service and socket state machines a little.

14 years agomanager: instead of using siginfo_t when reading SIGCHLD PIDs, run waitid() twice...
Lennart Poettering [Tue, 13 Apr 2010 00:05:27 +0000 (02:05 +0200)]
manager: instead of using siginfo_t when reading SIGCHLD PIDs, run waitid() twice to avoid dropped signals

14 years agomanager: we are not interested in SIGPIPE/SIGTTIN
Lennart Poettering [Tue, 13 Apr 2010 00:03:39 +0000 (02:03 +0200)]
manager: we are not interested in SIGPIPE/SIGTTIN

14 years agomain: ignore SIGKILL and SIGPIPE so that nothing intereferes with us
Lennart Poettering [Tue, 13 Apr 2010 00:01:28 +0000 (02:01 +0200)]
main: ignore SIGKILL and SIGPIPE so that nothing intereferes with us

14 years agomain: install crash handler in all signals that usually dump core
Lennart Poettering [Tue, 13 Apr 2010 00:00:30 +0000 (02:00 +0200)]
main: install crash handler in all signals that usually dump core

14 years agomanager: simplify startup of special targets
Lennart Poettering [Mon, 12 Apr 2010 23:59:06 +0000 (01:59 +0200)]
manager: simplify startup of special targets

14 years agomount-setup: fix nosuid/noexec/nodev mount option passing
Lennart Poettering [Mon, 12 Apr 2010 19:58:01 +0000 (21:58 +0200)]
mount-setup: fix nosuid/noexec/nodev mount option passing

14 years agoservice,mount,socket: explicitly unwatch control pids
Lennart Poettering [Sat, 10 Apr 2010 22:22:36 +0000 (00:22 +0200)]
service,mount,socket: explicitly unwatch control pids

14 years agomain: switch to primary console vt on crash
Lennart Poettering [Sat, 10 Apr 2010 21:36:43 +0000 (23:36 +0200)]
main: switch to primary console vt on crash

14 years agomain: introduce configurable crash shell
Lennart Poettering [Sat, 10 Apr 2010 20:35:37 +0000 (22:35 +0200)]
main: introduce configurable crash shell

14 years agomount-setup: disable device, execution, suid on device file systems
Lennart Poettering [Sat, 10 Apr 2010 19:46:51 +0000 (21:46 +0200)]
mount-setup: disable device, execution, suid on device file systems

14 years agomain: remove testing assert
Lennart Poettering [Sat, 10 Apr 2010 19:42:55 +0000 (21:42 +0200)]
main: remove testing assert

14 years agomain: install crash handler for creating core dumps
Lennart Poettering [Sat, 10 Apr 2010 19:40:40 +0000 (21:40 +0200)]
main: install crash handler for creating core dumps

14 years agoudev: look for new instead of add action
Lennart Poettering [Sat, 10 Apr 2010 19:23:55 +0000 (21:23 +0200)]
udev: look for new instead of add action

14 years agoudev: install rules file that ignore those nasty useless tty devices by default
Lennart Poettering [Sat, 10 Apr 2010 17:18:21 +0000 (19:18 +0200)]
udev: install rules file that ignore those nasty useless tty devices by default

14 years agohostname-setup: add SuSE compatiblity
Kay Sievers [Sat, 10 Apr 2010 16:53:48 +0000 (18:53 +0200)]
hostname-setup: add SuSE compatiblity

14 years agodbus: install D-Bus policy file by default
Lennart Poettering [Sat, 10 Apr 2010 16:51:07 +0000 (18:51 +0200)]
dbus: install D-Bus policy file by default

14 years agomount: implement mounting properly
Lennart Poettering [Sat, 10 Apr 2010 15:53:17 +0000 (17:53 +0200)]
mount: implement mounting properly

This also includes code that writes utmp/wtmp records when applicable,
making use the mount infrastructure to detct when those files are
accessible.

Finally, this also introduces a --dump-configuration-items switch.

14 years agoload-fragment: make socket timeout configurable
Lennart Poettering [Sat, 10 Apr 2010 15:50:54 +0000 (17:50 +0200)]
load-fragment: make socket timeout configurable

14 years agoload-fragment: move NonBlocking option from generic to service options
Lennart Poettering [Sat, 10 Apr 2010 15:48:41 +0000 (17:48 +0200)]
load-fragment: move NonBlocking option from generic to service options

14 years agoexecute: introduce exec_command_done() to free data from static ExecCommand structs
Lennart Poettering [Sat, 10 Apr 2010 15:47:07 +0000 (17:47 +0200)]
execute: introduce exec_command_done() to free data from static ExecCommand structs

14 years agoexecute: introduce exec_command_set() for easy setting for command lines
Lennart Poettering [Sat, 10 Apr 2010 15:46:41 +0000 (17:46 +0200)]
execute: introduce exec_command_set() for easy setting for command lines

14 years agoexecute: improve exec_spawn() logging
Lennart Poettering [Sat, 10 Apr 2010 15:46:01 +0000 (17:46 +0200)]
execute: improve exec_spawn() logging

14 years agodevice: ignore a couple of 'API' devices
Lennart Poettering [Sat, 10 Apr 2010 15:45:14 +0000 (17:45 +0200)]
device: ignore a couple of 'API' devices

14 years agoconf-parser: get rid of redundant NEWLINES definition
Lennart Poettering [Sat, 10 Apr 2010 15:44:19 +0000 (17:44 +0200)]
conf-parser: get rid of redundant NEWLINES definition

14 years agostrv: introduce strv_new_ap() call
Lennart Poettering [Sat, 10 Apr 2010 15:43:12 +0000 (17:43 +0200)]
strv: introduce strv_new_ap() call

14 years agomount-setup: introduce mount_point_is_api() call
Lennart Poettering [Sat, 10 Apr 2010 15:42:00 +0000 (17:42 +0200)]
mount-setup: introduce mount_point_is_api() call

14 years agoutil: introduce fstype_is_network()
Lennart Poettering [Sat, 10 Apr 2010 15:41:34 +0000 (17:41 +0200)]
util: introduce fstype_is_network()

14 years agodbus: add a couple of properties to the dbus manager interface
Lennart Poettering [Sat, 10 Apr 2010 15:40:18 +0000 (17:40 +0200)]
dbus: add a couple of properties to the dbus manager interface

14 years agodbus: make data pointer for properties read-only
Lennart Poettering [Sat, 10 Apr 2010 15:39:36 +0000 (17:39 +0200)]
dbus: make data pointer for properties read-only

14 years agodbus: add generic DEFINE_BUS_PROPERTY_APPEND_ENUM() macro for enum properties
Lennart Poettering [Sat, 10 Apr 2010 15:38:58 +0000 (17:38 +0200)]
dbus: add generic DEFINE_BUS_PROPERTY_APPEND_ENUM() macro for enum properties

14 years agodbus: add Dump() D-Bus call
Lennart Poettering [Sat, 10 Apr 2010 15:37:56 +0000 (17:37 +0200)]
dbus: add Dump() D-Bus call

14 years agoservice: don't necessarily add ordering links for non-sysv services
Lennart Poettering [Sat, 10 Apr 2010 03:05:05 +0000 (05:05 +0200)]
service: don't necessarily add ordering links for non-sysv services

14 years agoexecute: automatically record start/exit timestamps for forked processes
Lennart Poettering [Sat, 10 Apr 2010 03:03:14 +0000 (05:03 +0200)]
execute: automatically record start/exit timestamps for forked processes

14 years agohostname: set hostname early during boottime
Lennart Poettering [Sat, 10 Apr 2010 03:00:38 +0000 (05:00 +0200)]
hostname: set hostname early during boottime

14 years agotarget: introduce target_get_runlevel() for distilling SysV compatible runlevel infor...
Lennart Poettering [Sat, 10 Apr 2010 02:52:21 +0000 (04:52 +0200)]
target: introduce target_get_runlevel() for distilling SysV compatible runlevel information from a target

14 years agomount-setup: create full paths when mounting
Lennart Poettering [Sat, 10 Apr 2010 02:51:14 +0000 (04:51 +0200)]
mount-setup: create full paths when mounting

14 years agobuild-sys: automatically figure out names of dbus/syslog services
Lennart Poettering [Sat, 10 Apr 2010 02:50:40 +0000 (04:50 +0200)]
build-sys: automatically figure out names of dbus/syslog services

14 years agounit: introduce unit_load_related_unit()
Lennart Poettering [Sat, 10 Apr 2010 02:48:33 +0000 (04:48 +0200)]
unit: introduce unit_load_related_unit()

14 years agounit: make cgroup controller/path specification more flexible
Lennart Poettering [Sat, 10 Apr 2010 02:46:52 +0000 (04:46 +0200)]
unit: make cgroup controller/path specification more flexible

14 years agounit: issue notify even if the high-level state didn't change
Lennart Poettering [Sat, 10 Apr 2010 02:45:44 +0000 (04:45 +0200)]
unit: issue notify even if the high-level state didn't change

14 years agounit: dump some data only when unit is loaded
Lennart Poettering [Sat, 10 Apr 2010 02:44:24 +0000 (04:44 +0200)]
unit: dump some data only when unit is loaded

14 years agounit: dump start/exit timestamp
Lennart Poettering [Sat, 10 Apr 2010 02:43:57 +0000 (04:43 +0200)]
unit: dump start/exit timestamp

14 years agounit: free data from merged unit when we don't need it anymore
Lennart Poettering [Sat, 10 Apr 2010 02:43:21 +0000 (04:43 +0200)]
unit: free data from merged unit when we don't need it anymore

14 years agounit: refuse merging if the unit in question has a job assigned or suchlike
Lennart Poettering [Sat, 10 Apr 2010 02:42:36 +0000 (04:42 +0200)]
unit: refuse merging if the unit in question has a job assigned or suchlike

14 years agoutil: introduce format_timestamp()
Lennart Poettering [Sat, 10 Apr 2010 02:38:49 +0000 (04:38 +0200)]
util: introduce format_timestamp()

14 years agoutil: introduce mkdir_p()
Lennart Poettering [Sat, 10 Apr 2010 02:38:33 +0000 (04:38 +0200)]
util: introduce mkdir_p()

14 years agoutil: introduce streq_ptr() for comparing strings or their pointers
Lennart Poettering [Sat, 10 Apr 2010 02:38:14 +0000 (04:38 +0200)]
util: introduce streq_ptr() for comparing strings or their pointers

14 years agodbus: extra protection against dbus calling into us while we are already disconnected
Lennart Poettering [Thu, 8 Apr 2010 02:58:30 +0000 (04:58 +0200)]
dbus: extra protection against dbus calling into us while we are already disconnected

14 years agodbus: make sure dbus doesn't call us anymore when we unref'ed it
Lennart Poettering [Thu, 8 Apr 2010 02:43:47 +0000 (04:43 +0200)]
dbus: make sure dbus doesn't call us anymore when we unref'ed it

14 years agounit: when merging a device, follow the merge first
Lennart Poettering [Thu, 8 Apr 2010 02:34:42 +0000 (04:34 +0200)]
unit: when merging a device, follow the merge first

14 years agodevice: look for all possible device names on udev events
Lennart Poettering [Thu, 8 Apr 2010 02:34:21 +0000 (04:34 +0200)]
device: look for all possible device names on udev events

14 years agoservice: when reading pid file make sure to watch the pid read
Lennart Poettering [Thu, 8 Apr 2010 02:05:56 +0000 (04:05 +0200)]
service: when reading pid file make sure to watch the pid read

14 years agosystemctl: minor output fix
Lennart Poettering [Thu, 8 Apr 2010 01:49:12 +0000 (03:49 +0200)]
systemctl: minor output fix

14 years agoservice: verify PID is valid when reading it from PID file
Lennart Poettering [Thu, 8 Apr 2010 01:48:52 +0000 (03:48 +0200)]
service: verify PID is valid when reading it from PID file

14 years agoservice/socket: show main/control pids in dump
Lennart Poettering [Thu, 8 Apr 2010 01:48:27 +0000 (03:48 +0200)]
service/socket: show main/control pids in dump

14 years agomanager: print process name for all SIGCHLD received
Lennart Poettering [Thu, 8 Apr 2010 01:22:25 +0000 (03:22 +0200)]
manager: print process name for all SIGCHLD received

14 years agounit: shortcut unit_notify() early, if possible
Lennart Poettering [Thu, 8 Apr 2010 01:01:05 +0000 (03:01 +0200)]
unit: shortcut unit_notify() early, if possible

14 years agomain: fall back to rescue target when default target cannot be loaded
Lennart Poettering [Thu, 8 Apr 2010 00:00:40 +0000 (02:00 +0200)]
main: fall back to rescue target when default target cannot be loaded

14 years agomain: fix parsing of systemd.default= kernel command line argument
Lennart Poettering [Thu, 8 Apr 2010 00:00:22 +0000 (02:00 +0200)]
main: fix parsing of systemd.default= kernel command line argument

14 years agoutil: when reading a line from a file have space for at least 2k chars
Lennart Poettering [Wed, 7 Apr 2010 23:43:25 +0000 (01:43 +0200)]
util: when reading a line from a file have space for at least 2k chars

14 years agomount-setup: properly show NULL mount options
Lennart Poettering [Wed, 7 Apr 2010 23:43:07 +0000 (01:43 +0200)]
mount-setup: properly show NULL mount options

14 years agounit: make sure we detect messagbus/syslog going up
Lennart Poettering [Wed, 7 Apr 2010 23:22:51 +0000 (01:22 +0200)]
unit: make sure we detect messagbus/syslog going up

14 years agolog: log when we fail to open logging target
Lennart Poettering [Wed, 7 Apr 2010 23:22:27 +0000 (01:22 +0200)]
log: log when we fail to open logging target

14 years agolog: print a test line whever we manage to open a log device
Lennart Poettering [Wed, 7 Apr 2010 22:58:03 +0000 (00:58 +0200)]
log: print a test line whever we manage to open a log device

14 years agodbus: print a line when we connect to dbus
Lennart Poettering [Wed, 7 Apr 2010 22:53:33 +0000 (00:53 +0200)]
dbus: print a line when we connect to dbus

14 years agoudev: introduce SYSTEMD_EXPOSE as binary udev property for hiding/showing devices...
Lennart Poettering [Wed, 7 Apr 2010 22:53:21 +0000 (00:53 +0200)]
udev: introduce SYSTEMD_EXPOSE as binary udev property for hiding/showing devices in the systemd list

14 years agodbus: fix dbus event loop hookup
Lennart Poettering [Wed, 7 Apr 2010 22:52:50 +0000 (00:52 +0200)]
dbus: fix dbus event loop hookup

14 years agoexecute: make kill mode configurable
Lennart Poettering [Wed, 7 Apr 2010 22:52:14 +0000 (00:52 +0200)]
execute: make kill mode configurable

14 years agomain: set $PATH if it isn't set
Lennart Poettering [Wed, 7 Apr 2010 21:24:41 +0000 (23:24 +0200)]
main: set $PATH if it isn't set

14 years agoservice: optionally, call setsid() on services
Lennart Poettering [Wed, 7 Apr 2010 21:23:58 +0000 (23:23 +0200)]
service: optionally, call setsid() on services

14 years agosysv: add basic.target dependencies only for normal init scripts
Lennart Poettering [Wed, 7 Apr 2010 18:28:44 +0000 (20:28 +0200)]
sysv: add basic.target dependencies only for normal init scripts

14 years agoservice: parse default runlevels from init scripts
Lennart Poettering [Wed, 7 Apr 2010 18:27:52 +0000 (20:27 +0200)]
service: parse default runlevels from init scripts

14 years agoutil: add chars_intersect() call
Lennart Poettering [Wed, 7 Apr 2010 18:27:19 +0000 (20:27 +0200)]
util: add chars_intersect() call

14 years agoutil: add delete_chars() call
Lennart Poettering [Wed, 7 Apr 2010 18:27:05 +0000 (20:27 +0200)]
util: add delete_chars() call

14 years agosysv: use lsb dependencies only for ordering, not for pulling in stuff, leave that...
Lennart Poettering [Wed, 7 Apr 2010 16:47:36 +0000 (18:47 +0200)]
sysv: use lsb dependencies only for ordering, not for pulling in stuff, leave that to the symlink farms

14 years agomount-setup: mount debugfs by default
Lennart Poettering [Wed, 7 Apr 2010 16:47:08 +0000 (18:47 +0200)]
mount-setup: mount debugfs by default

14 years agosysv: handle suse style boot.d dirs
Lennart Poettering [Wed, 7 Apr 2010 16:46:49 +0000 (18:46 +0200)]
sysv: handle suse style boot.d dirs

14 years agoutil: make gcc shut up
Lennart Poettering [Wed, 7 Apr 2010 14:39:07 +0000 (16:39 +0200)]
util: make gcc shut up

14 years agojob: fix pulldown-on-failure logic
Lennart Poettering [Wed, 7 Apr 2010 14:38:56 +0000 (16:38 +0200)]
job: fix pulldown-on-failure logic

14 years agovala: take command line args to control whether to talk to system or session systemd
Lennart Poettering [Wed, 7 Apr 2010 14:23:08 +0000 (16:23 +0200)]
vala: take command line args to control whether to talk to system or session systemd