Make it more user friendly (e.g. without an open man page). Instead of
u root 0
g mail /usr/bin/procmail
g tty /usr/bin/write
d /var/lib/foobar 664 root root
c /etc/sudoers /usr/share/sudo/sudoers.default
user root 0
setgroup mail /usr/bin/procmail
... and so on.
Hmm,
Hmm, why should it be configurable? Isn't one (of the many) purposes
of systemd to unify the user-space of Linux? And we don't have
/lib/systemd/system-sleep/ configurable either, for example.
___
systemd-devel mailing list
I agree with Harald.
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel
True, but this requires manual patching and fixing up of `make
install`, which is a bummer.
Why?
Your debian/rules or rpmspec %build can simply do something like this:
make install
rm -f ${DEST}/etc/systemd/system/FOOO.BAR
that is much easier than quilt patches that modify
Compilation works okay here. And make check said PASS: test-namespace.
The change I made is to complain if __NR_setns is not defined.
The approach with an error message (at runtime) was taken from
iproute2. I used that because for many (desktop) users namespace
support isn't really needed. So
I'm on Debian 7.4 (the current stable one), gcc is gcc (Debian
4.7.2-5) 4.7.2. I get lots of warnings, but also a compilation error.
I also get one warning at autogen time and one warning at configure time.
For the compilation error: I have libc6-dev in version 2.13-38+deb7u1.
Doesn't that one
You need glibc = 2.14
Two notes:
* than ./configure should say so
* that cuts out Debian Stable from the dance, which is probably with
us for 2 years ...
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
Make C++11 static_assert work without warning by using C99 _Pragma() as well.
---
NOTE: this patch is probably whitespace damaged, because I'm pasting
it in via Google's web interface. I declared this patch as RFC because
I'm unsure how clang behaves on it.
Index:
Compilation on Debian Stable, this happens during a make:
GISCAN src/gudev/GUdev-1.0.gir
Usage: g-ir-scanner [options] sources
g-ir-scanner: error: no such option: -W
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
Okay, that's easy enought. Can you tell me if ./test-namespace is
all I need to test it? Or do I have to install the compile systemd
and create a service file with namespace stuff in it?
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
Make macro assert_cc() not emit declaration after statements warnings.
This can be done by using the GCC pragmas 'diagnostic ignore undefined'.
In order to be able to use that pragma inside a macro, we need to put it
into the (C99-introduced) _Pragma() pseudo-function.
---
src/shared/macro.h |
Debian Stable is still using glibc 2.13, which doesn't provide the setns().
So we detect this and provide a tiny wrapper that issues the setns syscall
towards the kernel.
---
configure.ac |3 +++
src/shared/missing.h | 13 +
2 files changed, 16 insertions(+)
diff --git
$ make -j1 V=1
make --no-print-directory all-recursive
Making all in .
/usr/bin/g-ir-scanner --c-include=gudev/gudev.h --namespace=GUdev
--nsversion=1.0 --libtool=/bin/bash ./libtool --include=GObject-2.0
--library=libgudev-1.0.la --pkg-export=gudev-1.0 --warn-all -pipe
-Wall -Wextra
with unit type ending in .zswap
No, not another unit type. Instead better amend .swap unit types to
also know about ZRAM.
However, isn't this a bit early? Shouldn't move ZRAM first move out of staging?
___
systemd-devel mailing list
Maybe this script *needs* a tty? Maybe it doesn't run as user git,
e.g. wrong rights, wrong home directory?
Try to put a set -x at the top of the script and restart it, then
you'll see where it failed. Then, look into that program and find out
why it failed. If in doubt, pepper it with debug
Marwan, he specified it, see above the line directly after [Service]
[Service]
Type=forking
User=git
WorkingDirectory=/var/www/gitlab
Environment=RAILS_ENV=production
One thing that makes me wonder is however his sidekick.target thingy.
It says that Redis and Postgresql should be started,
Hi,
on my systemd v208 + many patches from the Fedora 21 source RPM i get
TWO error messages in my journal when I login as root:
09:27:58 systemd-logind[118]: Failed to start unit user@0.service:
Unit user@0.service failed to load: No such file or directory.
09:27:58 systemd-logind[118]: Failed
Thomas,
logind in conjunction with udev's tagging also sets some device ACLs
correctly, which I like. I also like that I can have a protection to
not reboot my system while a user is active. So I'm not ready to get
rid of logind completely.
I'd actually have used user sessions if starting a
I'd actually have used user sessions
Not sure if I'd translate to I would have actually used. But that
is what I meant :-)
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel
systemd-journalctl and systemd-systemctl were also renamed to get more
convenient ...
(But hey, I don't really know what external stuff uses -.slice and
-.mount ...)
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
Oh, I confused that with the old /etc/systemd/systemd-journald.conf
file, which was renamed.
Kay, I only meant to special case the /, e.g. let
home-kay-data.mount be it like it is, but rename - to root, so
that it is root.mount and root.slice.
___
There is one strange thing here:
root@desktop:/etc# systemctl list-unit-files | grep multi
multi-user.targetdisabled
root@desktop:/etc# systemctl status multi-user.target
multi-user.target - Multi-User System
Loaded: loaded (/lib/systemd/system/multi-user.target; disabled)
Educated guess (!)
With LogLevel=debug, you generate huge amounts of output.
With DefaultStandardOutput=syslog, you're asking systemd to send it's
output to syslog.
But while systemd is starting your system the syslog might not be
ready. Probably systemd has some buffer, where it buffers the
I did not want to disable multi-user.target at all. It's perfectly
running, just as intended.
I just want to ask why list-unit-files reports erraneous junk. man
systemctl is very brief on it's output:
list-unit-files
List installed unit files.
Maybe it would be better to
Try systemctl --force reboot. The --force will kill the processes,
which (for me) closes the incoming ssh session.
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel
Chengwai,
given that kmod may not available in some distro version
I'm on Debian and use my self-compiled systemd v208 with a self-made
kmod_15.deb file. Packaging kmod is dead easy, it's a very
straightforward package. Using the newest kmod doesn't hurt Debian
Stable nor Debian SID. So the
Please consider renamign -.slice, because this sucks:
# cd /lib/systemd/system
# grep -r user@ *
grep: invalid option -- '.'
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
Yes, I know that I can use grep -r -- user@ *, but this is just inconvenient.
Waa, all of these tenthousand bus proxies ...
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel
Hi, I used ip netns commands to setup several network namespaces.
Now I want to run a user-space (non-root) in one of those netspaces.
ip netns exec NAME COMMAND seems to only work for root, not normal
users.
Is there a way to configure a systemd unit to run in a *specific*
network namespace? I
AFAIK Mac OSX does a trick here: it uses the last IP (still in the old
lease file) and immediately configures the network with that. *) Then
it does the DHCP, asking for the same IP. If the IP returned was
changed, it will re-change. But usually it's the same IP address, and
therefore on this OS
On http://www.freedesktop.org/wiki/Software/systemd/ControlGroupInterface/
To create and start a unit in the cgroup tree use the StartTransientUnit()
method on the Manager object exposed by systemd's PID 1 on the bus,
see the Bus API Documentation for details. This call takes for arguments.
Hi all,
I'm using systemd for embedded devices. The kernel is compiled for the
target and I don't need / use an initrd, as all device drivers are
known beforehand and I like the faster boot speed. That means that /
is mounted read-only when systemd starts.
However, systemd (and also journald, as
I was in error about this:
3. Now it tries to generate a machine ID and tries to write it into
/run/machine-id. Again this fails, because /run is still on the same
partition as /, and it is still not writable. FAIL !
When there is no writable or readable /etc/machine-id, then it won't
even
If I place an empty /etc/machine-id into the image, then
/run/machine-id will be bind-mounted over it.
But that file will be different whenever I boot. So obviously I want
to save it, once my filesystem is fsck'd and mounted read-write. But
if I do it like that ...
umount /etc/machine-id
cp
Maybe sd_id128_get_machine() could try first to read /etc/machine-id
and use that. If it doesn't exist, it could read /run/machine-id and
use that. If that doesn't exist we're doomed *)
That would allow some save-code like this (quick'n'dirty untested)
[Unit]
Description=Save machine-id
35 matches
Mail list logo