summaryrefslogtreecommitdiff
path: root/src/load-fragment.c
AgeCommit message (Collapse)Author
2012-03-12conf: enforce UTF8 validty everywhereLennart Poettering
we need to make sure that configuration data we expose via the bus ends up in using getting an assert(). Even though configuration data is only parsed from trusted sources we should be more careful with what we read.
2012-02-09service: add StartLimitInterval/StartLimitBurst/StartLimitActionMichael Olbrich
2012-01-31load-fragment: properly parse size values denoted in bytesLennart Poettering
2012-01-16unit: use safe downcasts, remove pointless castsMichal Schmidt
Always use the macros for downcasting. Remove a few obviously pointless casts.
2012-01-16unit: use the UNIT() macro consistentlyMichal Schmidt
The UNIT() macro upcasts from specific unit types to the base Unit. Use it everywhere, rather than accessing the 'meta' member directly.
2012-01-16unit: remove union UnitMichal Schmidt
Now that objects of all unit types are allocated the exact amount of memory they need, the Unit union has lost its purpose. Remove it. "Unit" is a more natural name for the base unit class than "Meta", so rename Meta to Unit. Access to members of the base class gets simplified.
2012-01-07load-fragment: fix parsing of Socket= settingLennart Poettering
2012-01-06unit: properly update references to units which are mergedLennart Poettering
When we merge units that some kind of object points to, those pointers might become invalidated, and needs to be updated. Introduce a UnitRef struct which links up all the unit references, to ensure corrected references. At the same time, drop configured_sockets in the Service object, and replace it by proper UNIT_TRIGGERS resp. UNIT_TRIGGERED_BY dependencies, which allow us to simplify a lot of code.
2011-09-23coverity: fix a couple of bugs found by coverityLennart Poettering
2011-09-21unit: introduce ConditionPathIsMountPoint=Lennart Poettering
2011-08-21exec: allow passing arbitrary path names to blkio cgroup attributesLennart Poettering
If a device node is specified, then adjust the bandwidth/weight of it, otherwise find the backing block device of the file system the path refers to and adjust its bandwidth/weight.
2011-08-21exec: add high-level controls for blkio cgroup attributesLennart Poettering
2011-08-20exec: optionally apply cgroup attributes to the cgroups we createLennart Poettering
2011-08-01load-fragment: speed up parsing by using a perfect hash table with ↵Lennart Poettering
configuration settings built by gperf
2011-07-12unit: introduce ConditionFileIsExecutable= and use it where we check for a ↵Lennart Poettering
binary we'll spawn
2011-07-07path,unit: support globbing in conditions and path unitsLennart Poettering
2011-07-01unit: support wildcards in Environment=, EnvironmentFile=Lennart Poettering
2011-07-01unit: do wildcard expansion in ListenStream= and friendsLennart Poettering
2011-06-30execute: when parsing ConrolGroup= replace wildcardsLennart Poettering
2011-06-30exec: add ControlGroupModify= switch to allow changing access mode to cgroups fsLennart Poettering
2011-06-28unit: when loading symlinked template units, properly add all names on the ↵Lennart Poettering
way to the unit
2011-05-19socket: expose SO_BROADCASTLennart Poettering
2011-05-19socket: expose IP_TRANSPARENTLennart Poettering
2011-05-18exec: hangup/reset/deallocate VTs in gettysLennart Poettering
Explicitly disconnect all clients from a VT when a getty starts/finishes (requires TIOCVHANGUP, available in 2.6.29). Explicitly deallocate getty VTs in order to flush scrollback buffer. Explicitly reset terminals to a defined state before spawning getty.
2011-05-17socket: add POSIX mqueue supportLennart Poettering
2011-05-05unit: make ignoring in snapshots a per unit property, instead of a per unit ↵Lennart Poettering
type property
2011-04-20socket: support ListeSpecial= socketsLennart Poettering
2011-04-16socket: guarantee order in which sockets are passed to be the one of the ↵Lennart Poettering
configuration file
2011-04-16manager: introduce IgnoreOnIsolate flag so that we can keep systemd-logger ↵Lennart Poettering
around when isolating
2011-04-10socket: support netlink socketsLennart Poettering
2011-04-10path: optionally, create watched directories in .path unitsLennart Poettering
2011-04-07unit: introduce OnFailureIsolate=Lennart Poettering
2011-04-04exec: support unlimited resourcesLennart Poettering
2011-04-03condition: add ConditionSecurityMichal Schmidt
Using ConditionSecurity a unit can depend on a security module being enabled/disabled. For now the only recognized security module is SELinux. I'd like to use this feature for a unit that creates /.autorelabel if SELinux is disabled, to ensure a relabel is done automatically when the system is later rebooted with SELinux enabled.
2011-04-03load-fragment: unify config_parse_condition_{kernel, virt}Michal Schmidt
They only differ in the condition type, otherwise the code is identical. Replace them with a more generic config_parse_condition_string().
2011-03-31log: fix shifting of facilitiesLennart Poettering
2011-03-28use /run instead of /dev/.runKay Sievers
Instead of the /dev/.run trick we have currently implemented, we decided to move the early-boot runtime dir to /run. An existing /var/run directory is bind-mounted to /run. If /var/run is already a symlink, no action is taken. An existing /var/lock directory is bind-mounted to /run/lock. If /var/lock is already a symlink, no action is taken. To implement the directory vs. symlink logic, we have a: ConditionPathIsDirectory= now, which is used in the mount units. Skipped mount unit in case of symlink: $ systemctl status var-run.mount var-run.mount - Runtime Directory Loaded: loaded (/lib/systemd/system/var-run.mount) Active: inactive (dead) start condition failed at Fri, 25 Mar 2011 04:51:41 +0100; 6min ago Where: /var/run What: /run CGroup: name=systemd:/system/var-run.mount The systemd rpm needs to make sure to add something like: %pre mkdir -p -m0755 /run >/dev/null 2>&1 || : or it needs to be added to filesystem.rpm. Udev -git already uses /run if that exists, and is writable at bootup. Otherwise it falls back to the current /dev/.udev. Dracut and plymouth need to be adopted to switch from /dev/.run to run too. Cheers, Kay
2011-03-18exec: properly apply capability bounding set, add inverted bounding setsLennart Poettering
2011-03-08unit: distuingish mandatory from triggering conditionsLennart Poettering
2011-03-04execute: load environment files at time of execution, not when we load the ↵Lennart Poettering
service configuration https://bugzilla.redhat.com/show_bug.cgi?id=661282
2011-02-21unit: introduce ConditionVirtualization=Lennart Poettering
2011-02-13service: make main pid guessing optional, and reread pid file after reloadsLennart Poettering
2011-02-04pam: optionally reset cgroup memberships for login sessionsLennart Poettering
2011-02-03load-fragment: properly parse Nice= valueAdrian Spinu
Hello, i`ve been using systemd for a while now, and found out that when using NICE parameter for .service files the varible is not set correctly. i`ve found the problem in file *load-fragment.c* function *config_parse_nice* variable /*c->nice_set = false;*/ should be /*c->nice_set = true;*/ Problem is alsom manifesting on v17 but did not upgrade yet ...
2011-01-22clang: fix some issues found with clang-analyzersystemd/v17Lennart Poettering
2011-01-18execute: make sending of SIGKILL on shutdown optionalLennart Poettering
2011-01-18man: document missing KillSignal= and swap optionsLennart Poettering
2011-01-06execute: drop empty assignments from env blocks on execution but keep them ↵Lennart Poettering
around otherwise to make them visible
2011-01-06fragment: allow prefixing of the EnvironmentFile= path with - to ignore errorsLennart Poettering
2011-01-05fragment: properly handle quotes in assignments in EnvironmentFile= filesLennart Poettering