Hi,
I would like to monitor for systemd related service notifications (for
e.g. service started, service ready, service stopped or service failed etc.)
I am trying to look through the sd-bus notification, and was looking at
the org.freedesktop.systemd1.manager and the subscribe method? Is this
Hi All,
What is the best option to do some debug/analysis of the system and the
services started by systemd during initial bootup?
I would like to use tools like perf and strace etc. on some of the
services. I could do this by starting the service manually but would like
to have all the
Hi,
Internally systemd, does differentiate between
stop - start
and
restart
because when you use restart, it preserves any FDs that were saved across
the stop and provides it to the start, but does not do the same thing, when
the user explictly does a stop/start.
I think it would be nice
Hi,
Please see this thread
http://comments.gmane.org/gmane.comp.sysutils.systemd.devel/35437, and for
that usecase, the suggestion to do shutdown did work fine, and with that I
was able to handle this case.
At that time, the other request I had was if sd_pid_notify_with_fds or
equivalent could
mechanism to prevent
continuous reboot cycle from a mis-behaving service/unit, which is
configured for reload on failure?
Thanks
Jana
On Sat, Feb 13, 2016 at 2:48 AM, Lennart Poettering <lenn...@poettering.net>
wrote:
> On Fri, 12.02.16 20:58, Pathangi Janardhanan (path.j...@gmail.c
Hi All,
The default target is usually set to multi-user or someother equivalent
target. Is there any way in systemd that I can say something like
" If the system is reloaded n number of times within the last x second",
than set the default target to recover or emergency mode etc.?
Basically I
Hi All,
I have a target t1, which has three services associated with it, t11, t12
and t13. The service dependencies After etc. I have in the individual t11,
t12 and t13 unit files
I have another target t2, which has two service associated with it t21,
t22. I want all units associated with
Hi All,
The use case I have is following:
I have a service B, which for its operation depends on Service A. Using
systemd feature, I can make systemd start service B after service A has
indicated ready.
The issue is service B also does a lot of initialization which is
independent of service
Hi,
I am using sd_notify_pid_with_fds and subsequently sd_notify_fds to store
and receive fds from systemd.
Systemd differentiates between
systemctl restart -> Where it stops and starts the service, but
maintains the fd stored above
whereas if I do systemctl stop and then start, the fds
.16 13:05, Pathangi Janardhanan (path.j...@gmail.com) wrote:
>
> > Currently in my package scripts I am doing a service stop and start.
> > But when I need to do an upgrade, if I do a service stop, systemd clears
> > all the fds. So would that mean that
Hi,
I had previously sent a mail on this but got no response, so wanted to
check again.
I am trying to use systemd as a way to store and restore the FDs used by a
service, so that the service can provide continuation of service during an
upgrade. for the purpose of trying it out, I am using a
Hi,
I had a previous thread on some issues in using sd_pid_notify_with_fds, but
started this as a separate thread, as this is not just about that call,
which anyway seems to be because I am using a older version.
I am trying to provide continuous service to connected clients (over TCP
socket)
Hi Daniel,
>It's only necessary to connect() sockets that are in connection mode
>(SOCK_STREAM or SOCK_SEQPACKET), but this one is a SOCK_DGRAM socket.
>The reason why this is failing is because your systemd version is too
>old. All versions prior to v227 have a bug that causes a miscalculation
Wed, Jan 6, 2016 at 1:05 PM, Pathangi Janardhanan <path.j...@gmail.com>
wrote:
> Hi,
>
> I had a previous thread on some issues in using sd_pid_notify_with_fds,
> but started this as a separate thread, as this is not just about that call,
> which anyway seems to be because I am u
Hi,
>> ret = sd_pid_notify_with_fds(0, 0, "FDSTORE=1\n", (const int *) fd,
>>num_fd);
> Is "fd" a single fd? If so you need to pass this as of course...
No, fd is a int array, which holds num_fd, "fd" values.
>The FDSTORE=1 line doesn't need to be suffixed with
Hi,
>> This is the output of the strace call on this section of the code in
>> the sd_pid_notify_with_fds, when I try to save the fds.
>>
>> socket(PF_LOCAL, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 8
>>
>> sendmsg(8, {msg_name(21)={sa_family=AF_LOCAL,
>> sun_path="/run/systemd/notify"},
s this scenario to be
handled?
Thanks
jana
On Tue, Jan 5, 2016 at 1:55 PM, Pathangi Janardhanan <path.j...@gmail.com>
wrote:
> Hi,
>
>
> >> This is the output of the strace call on this section of the code in
> >> the sd_pid_notify_with_fds, when I try to save
17 matches
Mail list logo