[systemd-devel] Does systemctl unmask enables a service also?

2021-07-17 Thread Debraj Manna
Hi I have read this article and it appears to me that unmasking and starting a service should also enable it back. But on trying it does not appear to happen like that ubuntu@vrni-platform:~$ sudo systemctl status flinkjobs.service ● flinkjob

Re: [systemd-devel] Restricting swap usage for a process managed via systemd

2021-07-09 Thread Debraj Manna
Thanks Michal it worked. On Thu, 8 Jul 2021, 21:35 Michal Koutný, wrote: > Hello Debraj. > > On Thu, Jul 08, 2021 at 05:10:44PM +0530, Debraj Manna < > subharaj.ma...@gmail.com> wrote: > > >> Linux vrni-platform 4.15.0-143-generic #147-Ubuntu SMP Wed Apr 14 >

Re: [systemd-devel] Restricting swap usage for a process managed via systemd

2021-07-08 Thread Debraj Manna
hy=1 kernel option > to switch everything to cgroups v2, but if you're using container software > (docker, podman) make sure those are cgroups v2-compatible. > > On Sun, Jul 4, 2021 at 10:36 AM Debraj Manna > wrote: > >> Hi >> >> I am trying to restrict t

[systemd-devel] Restricting swap usage for a process managed via systemd

2021-07-04 Thread Debraj Manna
Hi I am trying to restrict the swap usage of a process using MemorySwapMax as mentioned in the doc with Ubuntu 18.04. Environment ubuntu@vrni-platform:/usr/lib/systemd/system$ uname -a Linux vrni-platf

Re: [systemd-devel] Failed to activate service 'org.freedesktop.systemd1': timed out

2020-05-19 Thread Debraj Manna
repetitive. Upgrading my linux distribution (with latest systemd) will take some time. So trying to check if someway I can change the way I am using systemd to bypass this issue. On Tue, May 19, 2020 at 9:32 PM Lennart Poettering wrote: > > On Di, 19.05.20 20:47, Debraj Manna (subharaj.ma...@gma

Re: [systemd-devel] Failed to activate service 'org.freedesktop.systemd1': timed out

2020-05-19 Thread Debraj Manna
PM Michael Chapman wrote: > > On Mon, 18 May 2020, Debraj Manna wrote: > > Around the same time I am seeing the below error in syslog > > > > May 18 08:49:24 platform3 systemd[1]: Removed slice User Slice of support. > > May 18 08:49:27 platform3 systemd[1]: Assertion &#

Re: [systemd-devel] Failed to activate service 'org.freedesktop.systemd1': timed out

2020-05-18 Thread Debraj Manna
ktop.thermald - - - (activatable) - - org.freedesktop.timedate1- - - (activatable) The issue comes once in a while. The only way I can recover the setup is to reboot. On Mon, May 18, 2020 at 5:17 PM Debraj Manna wrote: > > Hi > &g

[systemd-devel] Failed to activate service 'org.freedesktop.systemd1': timed out

2020-05-18 Thread Debraj Manna
Hi I am using systemd 229 on Ubuntu 16.04.6. ubuntu@platform1:~$ systemctl --version systemd 229 +PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN But sometimes when I am trying to mask a service. I am se

[systemd-devel] How does KillSignal interact with TimeoutStopSec in systemd?

2020-04-26 Thread Debraj Manna
Can someone let me know the following about systemd service shutdown sequence 1. If I have specified KillSignal=SIGTERM then how does this interact this TimeoutStopSec ? Does this mean that during shutdown of service, first SIGTERM will be sent and if the service is still running afte

[systemd-devel] Environment Variables are not getting passed to a child script started from a service

2019-08-21 Thread Debraj Manna
I am having a unit file like below running on Ubuntu 16.04 with systemd version 229. [Unit] Description=Hadoop-Yarn-Resourcemanager Service [Service] Type=simple Environment=JAVA_HOME=/usr/lib/jvm/jdk1.8 Environment=YARN_USER=yarn Environment=YARN_IDENT_STRING=yarn Environment=YARN_PID_DIR=/var/ru

Re: [systemd-devel] Health check for a service managed by systemd

2019-07-26 Thread Debraj Manna
Thanks Mantas and Reindl for all your suggestions. On Fri, Jul 26, 2019 at 7:29 PM Reindl Harald wrote: > > > Am 26.07.19 um 15:37 schrieb Debraj Manna: > > Thanks Reindl for replying. > > > > Can we make use of the watchdog & systemd-notify functionality of >

Re: [systemd-devel] Health check for a service managed by systemd

2019-07-26 Thread Debraj Manna
ill -0 $PID if [[ $? -ne 0 ]]; then FAIL=1; fi #curl http://localhost/test/ #if [[ $? -ne 0 ]]; then FAIL=1; fi if [[ $FAIL -eq 0 ]]; then /bin/systemd-notify WATCHDOG=1; fi sleep 1 done On Fri, Jul 26, 2019 at 12:27 AM Reindl Harald wrote: > > > Am 25.07.19 um 20:38 schri

[systemd-devel] Health check for a service managed by systemd

2019-07-25 Thread Debraj Manna
I have a service on a Ubuntu 16.04 which I use systemctl start, stop, restart and status to control. One time the systemctl status returned active, but the application "behind" the service responded http code different from 200. So I would like to restart the service when the http code is not 200

Re: [systemd-devel] Logs from a service is not showing up in journalctl but showing up in syslog

2019-07-25 Thread Debraj Manna
do this? On Thu, Jul 25, 2019 at 4:50 PM Mantas Mikulėnas wrote: > On Thu, Jul 25, 2019 at 1:26 PM Debraj Manna > wrote: > >> I have unit file which looks like below. I am seeing some of the echo are >> showing up in syslog but not in journalctl. Can someone let me know what is

Re: [systemd-devel] Logs from a service is not showing up in journalctl but showing up in syslog

2019-07-25 Thread Debraj Manna
Thanks Silvio for replying. I will check your suggestions. But it appears this is some issue with systemd version 229 as mentioned in https://unix.stackexchange.com/a/417632 On Thu, Jul 25, 2019 at 4:09 PM Silvio Knizek wrote: > Am Donnerstag, den 25.07.2019, 15:55 +0530 schrieb Debraj Ma

[systemd-devel] Logs from a service is not showing up in journalctl but showing up in syslog

2019-07-25 Thread Debraj Manna
I have unit file which looks like below. I am seeing some of the echo are showing up in syslog but not in journalctl. Can someone let me know what is going on? systemd version 229 running on Ubuntu 16. [Unit] Description=Kafka Service [Service] Type=simple Environment=KAFKA_HOME=/home/ubuntu/depl

Re: [systemd-devel] How to ensure a systemd unit waits for ntpd to sync before starting?

2019-04-02 Thread Debraj Manna
Thanks again for all the replies. I am on Ubuntu 16.04 which is using systemd version 239. It appears to me that systemd-time-wait-sync.service is not present on this version of systemd. I have one more question related to this. If I switch to using systemd's timesyncd.service then in my service

Re: [systemd-devel] How to ensure a systemd unit waits for ntpd to sync before starting?

2019-04-02 Thread Debraj Manna
Thanks again for all the replies. I am on Ubuntu 16.04 which is using systemd version 239. It appears to me that systemd-time-wait-sync.service is not present on this version of systemd. I have one more question related to this. If I switch to using systemd's timesyncd.service then in my service

Re: [systemd-devel] How to ensure a systemd unit waits for ntpd to sync before starting?

2019-04-02 Thread Debraj Manna
I do see a ntp-wait . <https://linux.die.net/man/8/ntp-wait> Can some one let me know what corresponding condition I should place in my service unit file to wait for this? On Tue, Apr 2, 2019 at 2:47 PM Debraj Manna wrote: > Thanks for replying. Below is the service file for ntpd &g

Re: [systemd-devel] How to ensure a systemd unit waits for ntpd to sync before starting?

2019-04-02 Thread Debraj Manna
9:44 schrieb Debraj Manna: > > > > > > We have a service that starts at boot. We need to ensure it doesn't > > > start until the system clock has been synchronized via ntp. The > > > machines are using |ntpd| > > > > After=ntpd.service >

[systemd-devel] How to ensure a systemd unit waits for ntpd to sync before starting?

2019-04-02 Thread Debraj Manna
We have a service that starts at boot. We need to ensure it doesn't start until the system clock has been synchronized via ntp. The machines are using ntpd. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/m