Commit Graph

3912 Commits

Author SHA1 Message Date
Michael Biebl
9aade294d2 Update changelog 2013-02-15 13:35:34 +01:00
Michael Biebl
e1dabec4d1 Blacklist more services which shouldn't be enabled automatically 2013-02-15 13:22:09 +01:00
Michael Biebl
d7e5781795 Use a file trigger to automatically enable service and socket units
A lot of packages simply install systemd units but do not enable them.
Running "systemctl enable" in the maintainer scripts is not really an
option since it is not guaranteed that systemd is installed. We
therefore implement a workaround for wheezy which is supposed to go away
in jessie once we have the necessary tools support in debhelper etc.

What the proposed workaround does is:
- Install a dpkg file trigger for /lib/systemd/system which triggers a
  script named /lib/systemd/debian-enable-units every time a package
  installs a systemd unit.
- Run this script also upon initial installation of systemd and once on
  upgrades from earlier releases.

The script in particular does the following:
- Run "systemctl enable" for each service or socket it finds in
  /lib/systemd/system but does that only once, so the administrator can
  disable them if wanted.
- Record the state and installed symlinks. When a package shipping
  systemd units is uninstalled, we remove those symlinks again.
- Use a blacklist for internal services.
- If systemd is not the active init, it will only create a tag file
  and next time we boot with systemd, the script will be run early
  during boot. For that we install a service named
  debian-enable-units.service which is run in basic.target.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=692150
2013-02-09 16:42:15 +01:00
Michael Biebl
8b1dbbaddd Update changelog 2013-02-09 16:41:25 +01:00
Michael Biebl
d1047601af Fix mounting of remote filesystems, like NFS
Mounting remote filesystems, like NFS, via /etc/fstab using _netdev is
currently broken for two reasons:
- The nfs-common and rpcbind init scripts aren't correctly ordered
  because rpcbind uses an insserv specific configuration file which
  systemd doesn't parse, to define the $portmap system facility.
  As a result nfs-common is started too early, before rpcbind is
  running, and so the rpc.statd daemon simply exits.
- systemd automatically mounts filesystems with the _netdev option via
  remote-fs.target. This target should block until network.target is
  active. The network.target is currently not properly hooked up so
  systemd tries to mount those filesystems too early, when the network
  is not yet up. The result is a timeout during boot and a failed mount
  attempt.

This workaround does the following:
- Since the only provider for the portmap facility is the rpcbind
  init script, we map this directly to rpcbind.service instead of
  rpcbind.target. This ensures correct odering for init scripts using
  Required-Start: $portmap.
- Remote mounts are no longer hooked up in the remote-fs.target, ie.
  they are not started by systemd anymore. Instead we rely on the
  if-up.d mountnfs hook to mount those types of filesystems.

Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=673309
2013-02-09 16:27:52 +01:00
Michael Biebl
96b9c5c2a0 Update changelog 2013-02-09 16:27:42 +01:00
Michael Biebl
2d7f4ccfee Merge branch 'upstream-fixes' into debian 2013-02-09 15:50:17 +01:00
Michael Biebl
3b62b84897 man: typo fix in systemd.socket 2013-02-09 15:49:33 +01:00
Zbigniew Jędrzejewski-Szmek
c1d1952e59 systemctl: use color specification understood by dot
grey66 is aproximately equal to dark grey. Not understanding dark grey is really
a bug in dot, but trivial to work around.

Closes https://bugs.freedesktop.org/show_bug.cgi?id=45706
2013-02-09 15:49:13 +01:00
Michael Biebl
14d2386990 Release version 44-8 to unstable 2013-01-19 20:05:42 +01:00
Michael Biebl
78266b5917 Don't enable persistent storage of journal log files.
The journal in v44 is not yet mature enough.
2013-01-19 15:40:12 +01:00
Michael Biebl
81b35386de Update changelog 2013-01-19 15:38:55 +01:00
Michael Biebl
e89ec25a63 Use comment=systemd.* syntax in systemd.mount man page
The mount/util-linux version in wheezy is not recent enough to support
the new x-systemd* syntax. It requires util-linux 2.21 or newer with the
--enable-new-mount option enabled.

Once we have such a version in Debian, this commit should be reverted
again.
2013-01-19 15:38:35 +01:00
Michael Biebl
b5180ca519 Release version 44-7 to unstable 2012-12-21 00:15:57 +01:00
Michael Biebl
ddd0b7efe4 Fix a regression in the init-functions hook wrt reload handling
that was was introduced when dropping the X-Interactive hack.
Closes: #696355
2012-12-20 02:26:49 +01:00
Michael Biebl
77e933b50e Fix prerm to only err out on remove 2012-12-16 22:24:42 +01:00
Michael Biebl
0210c6cc0f Release version 44-6 to unstable 2012-12-16 21:59:06 +01:00
Michael Biebl
332acbef7a Use a separate tmpfs for /run/lock (size 5M) and /run/user (size 100M).
Those directories are user-writable which could lead to DoS by filling up
/run.  Closes: #635131
2012-12-16 21:58:23 +01:00
Tollef Fog Heen
c3f5f24967 Prevent the systemd package from being removed if it's the active init system, since that doesn't work. 2012-12-01 18:42:52 +01:00
Michael Biebl
2b6d544e78 Update changelog 2012-11-27 08:26:50 +01:00
Michael Biebl
99f4956c3b Merge branch 'wip/run-debian-fixup-once' into debian 2012-11-27 08:24:17 +01:00
Michael Biebl
ad0ce686d8 Run debian-fixup script only once
Converting /var/run, /var/lock and /etc/mtab to symlinks is a one-time
migration so don't try it on every boot.
2012-11-27 08:23:42 +01:00
Michael Biebl
4b3902b70a Don't run systemd udev rules if systemd is not active 2012-11-27 00:31:12 +01:00
Michael Biebl
1eea74a636 No longer ship the /sys directory in the systemd package
since it is provided by base-files nowadays.
2012-11-06 22:40:31 +01:00
Michael Biebl
9409f73033 Revert accidental commit
This reverts commit 75daf9e0c2.
2012-10-27 22:13:47 +02:00
Michael Biebl
fb676e109a Fix the bug number for the reload-on-shutdown issue 2012-10-26 07:25:26 +02:00
Michael Biebl
75daf9e0c2 foo 2012-10-25 22:32:24 +02:00
Michael Biebl
176d670a53 Release version 44-5 to unstable 2012-10-25 21:54:48 +02:00
Michael Biebl
b1407b8dac Add watch file to track new upstream releases. 2012-10-24 02:29:36 +02:00
Michael Biebl
82c82cbd35 Update changelog 2012-10-23 01:54:52 +02:00
Michael Biebl
3c80914900 Merge branch 'upstream-fixes' into debian 2012-10-23 01:53:26 +02:00
Michael Biebl
a62a1e3d92 man: Fix a few typos
Reported-by: A. Costa <agcosta@gis.net>
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=668344
2012-10-23 01:53:15 +02:00
Michael Biebl
45d5125a82 Update changelog 2012-10-23 01:52:49 +02:00
Michael Biebl
ea71cb4b7f Merge branch 'upstream-fixes' into debian 2012-10-23 01:49:54 +02:00
Shawn Landden
53c6f2fd9c cgtop: work even if not all cgroups are available
cgtop quits on startup if all the cgroup mounts it expects are not available.
Just continue without nonexistant ones.
2012-10-23 01:49:15 +02:00
Michael Biebl
ea12a21634 Avoid reload and (re)start requests during early boot which can lead to deadlocks. Closes: #624599 2012-10-18 10:16:14 +02:00
Michael Biebl
74ac0fef8f Update Vcs-* fields, the Git repository is hosted on alioth now. Set the default branch to "debian". 2012-10-18 09:49:10 +02:00
Tollef Fog Heen
a4ec5ac9b2 Typo 2012-10-16 20:48:38 +02:00
Tollef Fog Heen
906745b2fc Try harder at generating a sane(r) source tree, to keep the ever-moving dpkg happy 2012-10-16 20:38:22 +02:00
Tollef Fog Heen
938929a58b Changelog 2012-10-16 19:03:24 +02:00
Tollef Fog Heen
11e8ed9397 Merge branch 'upstream-fixes' into debian 2012-10-16 19:01:47 +02:00
Michael Stapelberg
c839c5f5c9 Heuristically determine whether SysV scripts support reload
This commit checks for a usage line which contains [{|]reload[|}"] (to
not errnously match force-reload).
2012-10-16 18:53:24 +02:00
Tollef Fog Heen
6ae819ee96 Avoid reloading services when shutting down
Doing so won't work and makes no sense.  Thanks to Michael Stapelberg
for the patch.  Closes: #624599.
2012-10-16 18:39:27 +02:00
Tollef Fog Heen
afffb4643d Merge branch 'upstream-fixes' into debian 2012-10-16 18:34:39 +02:00
Tollef Fog Heen
df3a84e49e disable killing on entering START_PRE, START, thanks to Michael Stapelberg for patch. This avoids killing VMs run through libvirt when restarting libvirtd. Closes: #688635. 2012-10-16 18:09:31 +02:00
Tollef Fog Heen
1bb2e622eb disable killing on entering START_PRE, START
The killing worked fine with the added "control" sub-cgroup, but that
brought other problems:
https://bugzilla.redhat.com/show_bug.cgi?id=816842

The "control" sub-cgroup had to be removed. In order not to
reintroduce https://bugzilla.redhat.com/show_bug.cgi?id=805942,
comment out the killing for F17 GA. Hopefully we'll get a proper fix
later.

Almost a revert of commit 8f53a7b8ea
"service: brutally slaughter processes that are running in the cgroup
when we enter START_PRE and START"
2012-10-16 18:07:14 +02:00
Tollef Fog Heen
2c6bb3339b Use changelog time rather than file time, since git does not preserve time stamps 2012-07-21 22:26:04 +02:00
Tollef Fog Heen
77c6b0275b Override timestamp when building man pages
Override timestamp for man page building, thereby avoiding skew
between architectures which caused problems for multi-arch.  Closes:
2012-07-21 22:05:17 +02:00
Tollef Fog Heen
1c60037ae1 Changelog for 605a506 2012-07-01 08:39:07 +02:00
Tollef Fog Heen
489afd6639 Typo 2012-07-01 08:37:58 +02:00